Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

Bitmap Transparency

SftTree/OCX automatically uses bitmap transparency for all bitmaps used throughout a tree control. When a bitmap is displayed, the background can show through portions of the bitmap. SftTree/OCX accomplishes this by dynamically modifying a copy of the bitmap to adjust for the background color.

The top, left pixel of each bitmap is inspected as the bitmap is painted. The color of that pixel represents the bitmap's background color. This color is replaced throughout the bitmap with the actual background color.

If the bitmap image includes the top, left pixel, add an extra row or column of pixels to the bitmap, so the image does not include the top, left pixel.

Bitmap transparency is only used for bitmaps and is not used for icons, images in an ImageList control, Windows metafiles, GDI+ images (e.g, NETImageObject property) or other images that can be represented by a SftPictureObject object.

.NET When using SftTree/OCX with .NET, bitmap transparency is only used for bitmaps loaded using the property pages. Any bitmaps converted from a PictureBox or an Image object will not use bitmap transparency. With .NET, the PictureBox control and Image objects support all image formats (gif, jpeg, ico, etc.) and are also supported by SftTree/OCX. Some of these image formats already define transparency and should be used if image transparency is desired.

Bitmap transparency is fully automatic and cannot be turned off.


Last Updated 08/13/2020 - (email)
© 2022 Softel vdm, Inc.