cete.dynamicpdf.webcolor
WebColor
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.CoreSuite.dll
Represents an RGB color created using the web hexadecimal convention.
public class WebColor : RgbColor
Public Class WebColor
Inherits RgbColor
Inheritance: Object → Color → DeviceColor → RgbColor → WebColor
Licensing Info
This class is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
Remarks
See the Colors topic for more on web colors.
Constructors
WebColor(String)
Initializes a new instance of the WebColor class.
public WebColor(string webColor)
Public Sub New (webColor As String)
Parameters
- webColor: String
The hexadecimal string representing the color.
Licensing Info
This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Properties
B
Gets or sets the blue value. (Inherited from RgbColor)
public float B { get; }
Public Property B As Single
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ColorSpace
Gets the color space for the color. (Inherited from RgbColor)
public ColorSpace ColorSpace { get; }
Public Property ColorSpace As ColorSpace
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Components
Gets the number of components for the device color. (Inherited from RgbColor)
public int Components { get; }
Public Property Components As Int32
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
G
Gets or sets the green value. (Inherited from RgbColor)
public float G { get; }
Public Property G As Single
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
R
Gets or sets the red value. (Inherited from RgbColor)
public float R { get; }
Public Property R As Single
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Methods
DrawFill(OperatorWriter)
Draws the color data to the given PageWriter object. (Inherited from RgbColor)
public void DrawFill(OperatorWriter writer)
Sub DrawFill(writer As OperatorWriter)
Parameters
- writer: OperatorWriter
OperatorWriter object to receive the color data.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
DrawFill(PageWriter)
Draws the color data to the given PageWriter object. (Inherited from DeviceColor)
public void DrawFill(PageWriter writer)
Sub DrawFill(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the color data.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
DrawStroke(OperatorWriter)
Draws the color data to the given PageWriter object. (Inherited from RgbColor)
public void DrawStroke(OperatorWriter writer)
Sub DrawStroke(writer As OperatorWriter)
Parameters
- writer: OperatorWriter
OperatorWriter object to receive the color data.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
DrawStroke(PageWriter)
Draws the color data to the given PageWriter object. (Inherited from DeviceColor)
public void DrawStroke(PageWriter writer)
Sub DrawStroke(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the color data.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Equals(Object)
Tests equality of colors. (Inherited from RgbColor)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
Object to compare to the current Color .
Returns
true if the two colors are equal
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from RgbColor)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Color .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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 full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ToStringBuilder(StringBuilder)
Appends the color information to the given StringBuilder object. (Inherited from RgbColor)
public void ToStringBuilder(StringBuilder stringBuilder)
Sub ToStringBuilder(stringBuilder As StringBuilder)
Parameters
- stringBuilder: StringBuilder
StringBuilder to receive the color information.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.