Re: [MSEide-MSEgui-talk] timagelist.cornermask

2017-03-27 Thread code dz
> What if one wants to blend the frame over both the client area and the
> background?
>

in this case , it is useless ;)

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] timagelist.cornermask

2017-03-27 Thread Martin Schreiber
On Monday 27 March 2017 11:54:36 code dz wrote:
> aha, thanks .
> what about rounded corner , do i have to set the rows manually ?

Yes, or it could be done by the frame image generator tool. If only Alexander 
had pushed the sources to MSEuniverse git, now probably it is lost.

> .i 
> think  this could be done automatically , just read scanline by
> scanline , and check alpha value ,whenever its not $ff , mark new new
> entry value .
>
What if one wants to blend the frame over both the client area and the 
background?

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] timagelist.cornermask

2017-03-27 Thread code dz
aha, thanks .
what about rounded corner , do i have to set the rows manually ? .i
think  this could be done automatically , just read scanline by
scanline , and check alpha value ,whenever its not $ff , mark new new
entry value .

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] timagelist.cornermask

2017-03-27 Thread Martin Schreiber
On Monday 27 March 2017 11:08:19 code dz wrote:
> but what cornermask.row is refer to ?
> for example a button has 4 corners , how much row needs ?
>
For the posted example the topleft-mask is:
   1 1 1 1 1 1
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
 0 x x x x x x x x x x x x x x x x
 1 x x x x x x x x x x x x x x x
 2 x x x x x x x x x x x x x x
 3 x x x x x x x x x x x x x
 4 x x x x x x x x x x x x
 5 x x x x x x x x x x x
 6 x x x x x x x x x x
 7 x x x x x x x x x
 8 x x x x x x x x
 9 x x x x x x x
10 x x x x x x
11 x x x x x
12 x x x x
13 x x x
14 x x
15 x

Top right corner mask is mirrored at y-axis, bottom left is mirrored at x-axis 
and bottom right is mirrored at x- and y-axis.

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] timagelist.cornermask

2017-03-27 Thread code dz
but what cornermask.row is refer to ?
for example a button has 4 corners , how much row needs ?

thanks

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] timagelist.cornermask

2017-03-27 Thread Martin Schreiber
On Sunday 26 March 2017 18:02:03 code dz wrote:
> Hi Martin
> what is cornermask in timagelist?
>
From source:
"
   property cornermask: msestring read fcornermask write setcornermask;
//array of int16, used in tframe for clipping corners of client area
//cornermask[n] = number of clipped pixels from edge of row n.
"
Assume a widget with round corners, there the client area must be masked 
outside of the radius. Click on the ellipse button in 
objectinspector 'cornermask' row in order to show the cornermask editor. The 
example in attachment clips a 16x16 pixel triangle. The generation of 
cornermasks probably should be added to the frame-image generator tool.

Martin
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk