Click or drag to resize

PdfRGBColor Structure

Implements structures and routines working with color.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public struct PdfRGBColor

The PdfRGBColor type exposes the following members.

Constructors
Name Description
Public method PdfRGBColor(Color)
Initializes a new instance of theclass.
Public method PdfRGBColor(Single)
Initializes a new instance of theclass.
Public method PdfRGBColor(PdfRGBColor)
Initializes a new instance of theclass.
Public method PdfRGBColor(Byte, Byte, Byte)
Initializes a new instance of theclass.
Public method PdfRGBColor(Single, Single, Single, Single)
Initializes a new instance of theclass.
Top
Properties
Name Description
Public property B
Gets or sets Blue channel value.
Public property Blue
Gets the blue.
Public property C
Gets or sets Cyan channel value.
Public property Static member Empty
Gets a null color.
Public property G
Gets or sets Green channel value.
Public property Gray
Gets or sets Gray channel value.
Public property Green
Gets the green.
Public property IsEmpty
Gets whether the PDFColor is Empty or not.
Public property K
Gets or sets Black channel value.
Public property M
Gets or sets Magenta channel value.
Public property R
Gets or sets Red channel value.
Public property Red
Gets the red.
Public property Y
Gets or sets Yellow channel value.
Top
Methods
Name Description
Public method Equals(Object)
Determines whether the specified is equal to the current .
(Overrides ValueType Equals(Object) .)
Public method Equals(PdfRGBColor)
Determines if the specified color is equal to this one.
Public method GetHashCode
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueType GetHashCode .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method ToArgb
Creates the Alpha ,Red ,Green, and Blue value of this PDFColor structure.
Public method ToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType .)
Top
Operators
See Also