On Fri, 10 Mar 2006 14:15:44 +0100 Tomas Gregorovic <[EMAIL PROTECTED]> wrote:
> Hi, > finally I have finished my long battle around bitmap masks. > > I have implemented method CreateBitmapMask, which creates mask according > to transparent color. The white pixels stand for opacity and black for > transperency (I have found out that this is in contrary to Delphi). I > hope this routine will function under all supported OSes - I have tested > it on win only. > > Next, I had to change btimap and image transparent* properties to behave > like Delphi equivalents. > > The difficult problem was how to keep transparency built in source of > bitmaps such as *.xpm. This I have solved by creating new seperate mask > accessible throught AlphaMaskHandle, which stores alpha channel data > that were previously stored in MaskHandle object. > > I have attached small test project, which nicely illustrates right mask > functioning. You added an AlphaMaskHandle, but I don't see when we need both MaskHandle and AlphaMaskHandle. Why not use the MaskHandle for the Mask? And btw: Not all widgetsets use separate Handle and MaskHandle. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives