Transparent Property

Measurement Studio User Interface

Transparent Property

Syntax

CWImage.Transparent

Data Type

Boolean

Purpose

Specifies if the image has a transparent color.

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

See Also

TransparentColor