HiQPdf Documentation

PdfColor Class

Quickly Create High Quality PDFs
The PDF color class
Inheritance Hierarchy

SystemObject
  HiQPdfPdfColor

Namespace:  HiQPdf
Assembly:  HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax

public class PdfColor

The PdfColor type exposes the following members.

Constructors

  NameDescription
Public methodPdfColor
Constructs a PDF color object having all components set to 0
Public methodPdfColor(Color)
Constructs a PDF color object with the given system color
Public methodPdfColor(Byte, Byte, Byte)
Constructs a PDF color with the given RGB components as integer values between 0 and 255
Public methodPdfColor(Byte, Byte, Byte, Byte)
Constructs a PDF color with the given ARGB components as integer values between 0 and 255
Public methodPdfColor(Single, Single, Single, Single)
Constructs a PDF color with the given CMYK components as real values between 0 and 1
Top
Properties

  NameDescription
Public propertyA
The alpha component of the color in RGB color model
Public propertyB
The blue component of the color in RGB color model
Public propertyC
The cyan component of the color in CMYK color model
Public propertyG
The green component of the color in RGB color model
Public propertyK
The black component of the color in CMYK color model
Public propertyM
The magenta component of the color in CMYK color model
Public propertyR
The red component of the color in RGB color model
Public propertyY
The yellow component of the color in CMYK color model
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators

  NameDescription
Public operatorStatic member(Color to PdfColor)
This operator will implicitly convert a system color to a PDF color
Public operatorStatic member(PdfColor to Color)
Converts a PDF color to a system color
Top
See Also

Reference