Color Class Documentation
class Color : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
Detailed Description
A color specified by values appropriate for its color space.
The values that are offered range from 0 to 1.0 for red, green, and blue (RGB) or cyan, magenta, yellow, and black (CYMK).
Referenced by
Uses types
Constructor & Destructor Documentation
Color
Color(ColorSpace colorSpace, System.Collections.Generic.IList< System.Double > values)Parameters
colorSpace: ColorSpacethe color space in which to create the color
values: System.Collections.Generic.IList< System.Double >the values to place into the color
Create a new color in an arbitrary color space. The number of values passed must match the number of values in the color space.
Color
Color(double c, double m, double y, double k)Parameters
c: doublethe cyan color value for the new color (0.0 - 1.0)
m: doublethe magenta color value for the new color (0.0 - 1.0)
y: doublethe yellow color value for the new color (0.0 - 1.0)
k: doublethe black color value for the new color (0.0 - 1.0)
Create a new color in the DeviceCMYK colorspace with the specified value.
Color
Color(double grey)Parameters
grey: doublethe grayscale color value for the new color (0.0 - 1.0)
Create a new color in the DeviceGray colorspace with the specified value.
Color
Color(double r, double g, double b)Parameters
r: doublethe red color value for the new color (0.0 - 1.0)
g: doublethe green color value for the new color (0.0 - 1.0)
b: doublethe blue color value for the new color (0.0 - 1.0)
Create a new color in the DeviceRGB colorspace with the specified value.
Color
Color(Pattern pattern)Parameters
pattern: PatternThe pattern to turn into a color
Create a new color in the pattern color space.
Property Documentation
Pattern
Pattern Pattern[get]The pattern of the color. Only valid for pattern-based colors.
Space
ColorSpace Space[get]The color space of the color.
Value
System.Collections.Generic.IList< System.Double > Value[get]The values of the color. Not valid for pattern-based colors.
Member Function Documentation
Dispose
void Dispose()Returns:
voidEquals
override bool Equals(object obj)Parameters
obj: object
Returns:
override boolToString
override string ToString()Returns:
override stringA string describing the color, including its color space and component values.
Returns a string representation of this Color.