TransparentColor Property
Syntax
CWImage.TransparentColor
Data Type
Purpose
Specifies the color in the image that must be drawn as transparent.
Remarks
You can use the Transparent and TransparentColor properties to create transparent regions within a bitmap, icon, or metafile.The TransparentColor property applies only when Transparent is set to True. When the control draws the image, it does not draw any pixels that are the color specified with the TransparentColor property. Thus, the graphics that are underneath the image show through.
When the control is printed, it ignores the Transparent property in some ActiveX control containers.
This property does not apply to CWImage objects representing captions.
Example
'Make the color black transparent in the image
CWButton1.OffImage.CWImage.TransparentColor = vbBlack
CWButton1.OffImage.CWImage.Transparent = True