Skip to main content

Color Structure

Version: 4.0

Color Structure

Represents an ARGB (alpha, red, green, blue) color.

public struct Color : ValueType
Public Structure Color
Inherits ValueType

Inheritance: Object → ValueType → Color

Licensing Info​

This struct is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Constructors​

Color(Byte, Byte, Byte, Byte)​

Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values.

public Color(byte alpha, byte red, byte green, byte blue)
Public Sub New (alpha As Byte, red As Byte, green As Byte, blue As Byte)

Parameters​

Licensing Info​

This constructor is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Properties​

A​

Gets the alpha component value of this Color structure.

public byte A { get; set; }
Public Property A As Byte

Property Value​

Byte

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

B​

Gets the blue component value of this Color structure.

public byte B { get; set; }
Public Property B As Byte

Property Value​

Byte

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

G​

Gets the green component value of this Color structure.

public byte G { get; set; }
Public Property G As Byte

Property Value​

Byte

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

R​

Gets the red component value of this Color structure.

public byte R { get; set; }
Public Property R As Byte

Property Value​

Byte

Licensing Info​

This property is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

Methods​

Equals(Object)​

Indicates whether this instance and a specified object are equal. (Inherited from ValueType)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

Another object to compare to.

Returns​

true if and this instance are the same type and represent the same value; otherwise, false.

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

FromArgb(Byte, Byte, Byte, Byte)​

Creates a Color structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.

public static Color FromArgb(byte alpha, byte red, byte green, byte blue)
Shared Function FromArgb(alpha As Byte, red As Byte, green As Byte, blue As Byte) As Color

Parameters​

Returns​

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Returns the hash code for this instance. (Inherited from ValueType)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A 32-bit signed integer that is the hash code for this instance.

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

ToArgb()​

Gets the 32-bit ARGB value of this Color structure.

public int ToArgb()
Function ToArgb() As Integer

Returns​

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

ToString()​

Returns the fully qualified type name of this instance. (Inherited from ValueType)

public string ToString()
Function ToString() As String

Returns​

A String containing a fully qualified type name.

Licensing Info​

This method is a DynamicPDF Rasterizer feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Rasterizer