MaskColor Property

Returns or sets the color in a bitmap image that should be interpreted as the transparent color. Deprecated property.

object.MaskColor = [value]

Version Support

Obsolete from version 11.0. Refer to Deprecated and Obsolete items for additional information.

Use

It is recommended that non-system colors are assigned to this property. If the system colors are specified and they subsequently change, then the color which is transparent will change, making the appearance of your picture unpredictable.

This property is only applicable when the UseMaskColor property is set to True.

If the MaskColor property is specified at run-time, the control will redraw itself with the new color acting as a mask.

Note:

The MaskColor property can only be used with bitmap (.bmp) images. JPEG, GIF and PNG images will ignore the MaskColor property.

See Also

BackColor property | BackStyle property | Color Constants | ForeColor property | UseMaskColor property | Properties

Applies To

Command button control

Form object

ImageList control

Menu button control

PictureBox control

TabPage control


© 2004-2021 looksoftware. All rights reserved.