The PDF color class
Inheritance Hierarchy
HiQPdfPdfColor
Namespace: HiQPdf
Assembly: HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax
The PdfColor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | PdfColor |
Constructs a PDF color object having all components set to 0
|
![]() | PdfColor(Color) |
Constructs a PDF color object with the given system color
|
![]() | PdfColor(Byte, Byte, Byte) |
Constructs a PDF color with the given RGB components as integer values between 0 and 255
|
![]() | PdfColor(Byte, Byte, Byte, Byte) |
Constructs a PDF color with the given ARGB components as integer values between 0 and 255
|
![]() | PdfColor(Single, Single, Single, Single) |
Constructs a PDF color with the given CMYK components as real values between 0 and 1
|
Properties
Name | Description | |
---|---|---|
![]() | A |
The alpha component of the color in RGB color model
|
![]() | B |
The blue component of the color in RGB color model
|
![]() | C |
The cyan component of the color in CMYK color model
|
![]() | G |
The green component of the color in RGB color model
|
![]() | K |
The black component of the color in CMYK color model
|
![]() | M |
The magenta component of the color in CMYK color model
|
![]() | R |
The red component of the color in RGB color model
|
![]() | Y |
The yellow component of the color in CMYK color model
|
Methods
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Operators
Name | Description | |
---|---|---|
![]() ![]() | (Color to PdfColor) |
This operator will implicitly convert a system color to a PDF color
|
![]() ![]() | (PdfColor to Color) |
Converts a PDF color to a system color
|
See Also