[lazarus] Bitmap transparency?

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Nov 8 09:37:21 EST 2003


On Sat, 08 Nov 2003 15:34:48 +0100
Micha Nelissen <M.Nelissen at student.tue.nl> wrote:

> Hi,
> 
> How does bitmap transparency work in the lcl? 

First of all: it is not completely implemented. (Same with palettes).


> I noticed that recently 
> most of the buttons in the IDE aren't transparent anymore on win32. Some 
> have a black background, some gray (these look transparent) and others 
> are white.

See bitmap.inc ReadStream.
The IDE icons are in xpm format, so they are converted to handles with
CreatePixmapIndirect

The returned handle is up to the interface. For the gtk-interface it is an
internal GDI object, which stores the image, the mask and some other info.


Mattias






More information about the Lazarus mailing list