XColor StructureTerminal Works - PDF Printing.Net Library
Represents a RGB, CMYK, or gray scale color.

Namespace: PdfEdit.Drawing
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax

public struct XColor

The XColor type exposes the following members.

Methods

  NameDescription
Public methodEquals
Determines whether the specified object is a Color structure and is equivalent to this Color structure.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromArgb(Color)
Creates an XColor structure from the specified System.Drawing.Color.
Public methodStatic memberFromArgb(Int32)
Creates an XColor structure from a 32-bit ARGB value.
Public methodStatic memberFromArgb(UInt32)
Creates an XColor structure from a 32-bit ARGB value.
Public methodStatic memberFromArgb(Int32, XColor)
Creates an XColor structure from the specified alpha value and color.
Public methodStatic memberFromArgb(Int32, Color)
Creates an XColor structure from the specified alpha value and color.
Public methodStatic memberFromArgb(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).
Public methodStatic memberFromArgb(Int32, Int32, Int32, Int32)
Creates an XColor structure from the four ARGB component (alpha, red, green, and blue) values.
Public methodStatic memberFromCmyk(Double, Double, Double, Double)
Creates an XColor structure from the specified CMYK values.
Public methodStatic memberFromCmyk(Double, Double, Double, Double, Double)
Creates an XColor structure from the specified CMYK values.
Public methodStatic memberFromGrayScale
Creates an XColor structure from the specified gray value.
Public methodStatic memberFromKnownColor(KnownColor)
Creates an XColor from the specified pre-defined color.
Public methodStatic memberFromKnownColor(XKnownColor)
Creates an XColor from the specified pre-defined color.
Public methodStatic memberFromName
Creates an XColor from the specified name of a pre-defined color.
Public methodGetBrightness
Gets the hue-saturation-brightness (HSB) brightness value for this color.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetHue
Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this color.
Public methodGetSaturation
Gets the hue-saturation-brightness (HSB) saturation value for this color.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToGdiColor
Creates a System.Drawing.Color object from this color.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Determines whether two colors are equal.
Public operatorStatic member(Color to XColor)
Implicit conversion from Color to XColor
Public operatorStatic memberInequality
Determines whether two colors are not equal.
Top
Fields

  NameDescription
Public fieldStatic memberEmpty
Represents the null color.
Top
Properties

  NameDescription
Public propertyA
Gets or sets the alpha value the specifies the transparency. The value is in the range from 1 (opaque) to 0 (completely transparent).
Public propertyB
Gets or sets the blue value.
Public propertyC
Gets or sets the cyan value.
Public propertyColorSpace
Gets or sets the color space to be used for PDF generation.
Public propertyG
Gets or sets the green value.
Public propertyGS
Gets or sets the gray scale value.
Public propertyIsEmpty
Indicates whether this XColor structure is uninitialized.
Public propertyIsKnownColor
Gets a value indicating whether this color is a known color.
Public propertyK
Gets or sets the black (or key) value.
Public propertyM
Gets or sets the magenta value.
Public propertyR
Gets or sets the red value.
Public propertyRgbCmykG
Special property for XmlSerializer only.
Public propertyY
Gets or sets the yellow value.
Top
See Also

Reference