See Also Examples Applies To
Sets the color key (transparency range) for a specified category on the native GdPicture image.
This function sets the high and low color-key values so that arange of colors can be made transparent.
Any color that has each of its three components (red, green, blue) between the corresponding components of the high and low color keys is made transparent.
Syntax
object.SetColorKey (nColorLow, nColorHigh)
The SetColorKey syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nColorLow | Required. Long. Specifies the low ARGB color-key value. |
| nColorHigh | Required. Long. Specifies the high ARGB color-key value. |
Returns
Long. GdPictureStatus
Category
ICC Profile & Color Remap Functions
Visual Basic Sample
Call Object.SetColorKey(Object.ARGB(255,100, 95, 30), Object.RGB(255,250, 245, 60)