Click or drag to resize

Color Class

X#
Select or create a color, which can be used by a Brush, Pen, or DrawObject object.
Inheritance Hierarchy
Object
  VObject
    Color

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 CLASS Color INHERIT VObject
Request Example View Source

The Color type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleColor
Construct a color
Top
Properties
  NameDescription
Public propertyBlue
A numeric value between 0 (lowest intensity) and 255 (highest intensity) representing the amount of blue in a color.
Public propertyColorRef
A numeric value between 0 and 0xFFFFFF with the combined colors in RGB format.
Public propertyGreen
A numeric value between 0 (lowest intensity) and 255 (highest intensity) representing the amount of green in a color.
Public propertyRed
A numeric value between 0 (lowest intensity) and 255 (highest intensity) representing the amount of red in a color.
Top
Methods
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
X# provides eight predefined colors or you can also create a color by specifying a weighted combination of red, green, and blue (RGB) values. (Values can range from 0 (lowest intensity) to 255 (highest intensity).)
Examples
This example darkens a color:
X#
1METHOD Darken(oColor) CLASS MyWindow
2RETURN Color{oColor:Red - 9, oColor:Green - 9, ;
3oColor:Blue - 9}
See Also

Reference