SetColor Statement:
Set foreground color
Object.SetColor
red, green, blue, alpha
|
Parametrs:
red-has integer type. Possible values: [0-255]. Red color value
green-has integer type. Possible values: [0-255]. Green color value
blue-has integer type. Possible values: [0-255]. Blue color value
alpha-has integer type. Possible values: [0-255]. Color alpha channel value
|
Sample: object.SetColor
255, 255, 0, 0
This method sets current color. ASP Painter component can work with several colors at the same time when using SetColorIndex method. Also several colors are used to set gradient data.
See also
SetColor,
GetColor,
GetColorAlpha, GetColorRed,
GetColorBlue,
GetColorGreen, GetPixelRed,
GetPixelAlpha,
GetPixelBlue, GetPixelGreen,
SetColorIndex,
GetColorIndex
More samples:
Brush
Circle,
Arc, ,
Ellipse, Brush,
Polygon, Pie
Copy Resize Merge
Cat,
Copy, Copy,
Copy with transparent, Files,
Photo,
Merge, Merge cat,
Merge cat,
Resize, Resize photo
Database
Read,
Write
Diagram
Chart,
Pie
Effect
Gray
Fill
Fill
Get info
Get pixel
Gradient
Arc,
Besier, Circle,
Ellipse,
Gradient, Pie,
Polygon,
Rectangle, Unclosed
polygon
Load file
Load BMP,
Load GIF, Load Jpeg,
Load PNG,
Load Tiff
Primitive
Arc,
Beziers, Circle,
Ellipse,
Line, Pie,
Rectangle, Unclosed
polygon, Unclosed
polygon
Region
Region
Rotate
Horizontal,
Mirror, Rotate,
Vertical,
Stream
Stream
Text
Antialias,
Exist font, Font,
Fonts, Rotate text,
Style,
Text gradient, Text in
rectangle
Thumbnail
Thumbnail
Transparent
Transparent
Variant
Variant
|
|