I'm trying to add a bitmap object to an imageEnView with transparency.
This is what I have so far:
bmp.PixelFormat:=pf24bit; bmp.assign(bmpIconNote); bmp.TransparentMode:=tmAuto; bmp.saveToFile(filename); ImageEnV.setObjBitmapFromFile(hObj, fileName); ImageEnV.ObjWidth[hOBJ]:=48; ImageEnV.ObjHeight[hOBJ]:=48; I However, the image is not transparent. What do I need to do?
For a TBitmap to be transparent it must be 32bit. Even then I don't know that assigning an icon to it will copy the alpha information. You are probably better to work with TIEBitmap to generate a transparent image.
What is your source? If it is an icon file, you can just TIEBitmap.Read to load it with transparency.
Also, if you are starting on a new project, you should use TIELayers, not TImageEnVect objects, e.g.