See Also Examples Applies To
Applies a color-remap table to the native GdPicture image.
Syntax
object.SetColorRemap (*arRemapTable())
The SetColorRemap syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| *arRemapTable() | Required. Input 1D or 2D (0 based) Long Array. The remap table Data. See sample. |
Returns
Long. GdPictureStatus
Category
ICC Profile & Color Remap Functions
Visual Basic Sample
Translate in one call, Blue color by Green, White by Black and Red by Yellow.
Dim arcolor(0 To 2, 0 To 1) As Long
arcolor(0, 0) = Blue
arcolor(0, 1) = Green
arcolor(1, 0) = White
arcolor(1, 1) = Black
arcolor(2, 0) = Red
arcolor(2, 1) = Yellow
Object.CreateImageFromFile ("input.bmp")
Call Object.SetColorRemap(arcolor)
Object.SaveAsBmp ("output.bmp")
Object.CloseNativeImage