SetColorIndex Statement:
Select color
Object.SetColorIndex
index
|
Parameters:
index-has integer type. Possible values: [0-9]. Sets current color
index
|
Sample: object.SetColorIndex
1
This method selects a color from the color array. ASP Painter allows you to
work with several colors at the same time. All colors in color array are
initialized with black transparent color values by default. Thus when you
switch from one color to another one you should initialize the color. When you
switch colors their values remain in the array. When you have not made a single
call to SetColorIndex, 0 index is set by default. 0 and 1 color indices are
used to set gradient data.
See also
SetColor,
GetColor,
GetColorAlpha, GetColorRed,
GetColorBlue,
GetColorGreen, GetPixelRed,
GetPixelAlpha,
GetPixelBlue, GetPixelGreen,
SetColorIndex,
GetColorIndex
More samples:
|