Represents a RGB, CMYK, or gray scale color.
Namespace: PdfEdit.Drawing
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.2.1.0 (5.2.1.0)
Syntax
The XColor type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Equals |
Determines whether the specified object is a Color structure and is equivalent to this
Color structure.
(Overrides ValueTypeEquals(Object).) | |
| FromArgb(Color) |
Creates an XColor structure from the specified System.Drawing.Color.
| |
| FromArgb(Int32) |
Creates an XColor structure from a 32-bit ARGB value.
| |
| FromArgb(UInt32) |
Creates an XColor structure from a 32-bit ARGB value.
| |
| FromArgb(Int32, XColor) |
Creates an XColor structure from the specified alpha value and color.
| |
| FromArgb(Int32, Color) |
Creates an XColor structure from the specified alpha value and color.
| |
| FromArgb(Int32, Int32, Int32) |
Creates an XColor structure from the specified 8-bit color values (red, green, and blue).
The alpha value is implicitly 255 (fully opaque).
| |
| FromArgb(Int32, Int32, Int32, Int32) |
Creates an XColor structure from the four ARGB component (alpha, red, green, and blue) values.
| |
| FromCmyk(Double, Double, Double, Double) |
Creates an XColor structure from the specified CMYK values.
| |
| FromCmyk(Double, Double, Double, Double, Double) |
Creates an XColor structure from the specified CMYK values.
| |
| FromGrayScale |
Creates an XColor structure from the specified gray value.
| |
| FromKnownColor(KnownColor) |
Creates an XColor from the specified pre-defined color.
| |
| FromKnownColor(XKnownColor) |
Creates an XColor from the specified pre-defined color.
| |
| FromName |
Creates an XColor from the specified name of a pre-defined color.
| |
| GetBrightness |
Gets the hue-saturation-brightness (HSB) brightness value for this color.
| |
| GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
| GetHue |
Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this color.
| |
| GetSaturation |
Gets the hue-saturation-brightness (HSB) saturation value for this color.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToGdiColor |
Creates a System.Drawing.Color object from this color.
| |
| ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Operators
| Name | Description | |
|---|---|---|
| Equality |
Determines whether two colors are equal.
| |
| (Color to XColor) |
Implicit conversion from Color to XColor
| |
| Inequality |
Determines whether two colors are not equal.
|
Fields
| Name | Description | |
|---|---|---|
| Empty |
Represents the null color.
|
Properties
| Name | Description | |
|---|---|---|
| A |
Gets or sets the alpha value the specifies the transparency.
The value is in the range from 1 (opaque) to 0 (completely transparent).
| |
| B |
Gets or sets the blue value.
| |
| C |
Gets or sets the cyan value.
| |
| ColorSpace |
Gets or sets the color space to be used for PDF generation.
| |
| G |
Gets or sets the green value.
| |
| GS |
Gets or sets the gray scale value.
| |
| IsEmpty |
Indicates whether this XColor structure is uninitialized.
| |
| IsKnownColor |
Gets a value indicating whether this color is a known color.
| |
| K |
Gets or sets the black (or key) value.
| |
| M |
Gets or sets the magenta value.
| |
| R |
Gets or sets the red value.
| |
| RgbCmykG |
Special property for XmlSerializer only.
| |
| Y |
Gets or sets the yellow value.
|
See Also