cete.dynamicpdf.devicecolor
DeviceColor
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.NETFramework40.dll, DynamicPDF.NETStandard20.dll
Represents the base class for which all solid colors are derived.
public abstract class DeviceColor : Color
Public MustInherit Class DeviceColor
Inherits Color
Inheritance: Object → Color → DeviceColor
Derived: CmykColor, Grayscale, RgbColor, WebColor
Licensing
This class is a DynamicPDF Generator Community Edition feature.
Properties
ColorSpace
Gets the color space for the color. (Inherited from Color)
public abstract ColorSpace ColorSpace { get; }
Public MustOverride Property ColorSpace As ColorSpace
Property Value
Components
Gets the number of components for the device color.
public abstract int Components { get; }
Public MustOverride Property Components As Int32
Property Value
Methods
DrawFill(OperatorWriter)
Draws the color data to the given OperatorWriter object. (Inherited from Color)
public void DrawFill(OperatorWriter writer)
Sub DrawFill(writer As OperatorWriter)
Parameters
- writer: OperatorWriter
OperatorWriter object to receive the color data.
DrawFill(PageWriter)
Draws the color data to the given PageWriter object.
public void DrawFill(PageWriter writer)
Sub DrawFill(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the color data.
DrawStroke(OperatorWriter)
Draws the color data to the given OperatorWriter object. (Inherited from Color)
public void DrawStroke(OperatorWriter writer)
Sub DrawStroke(writer As OperatorWriter)
Parameters
- writer: OperatorWriter
OperatorWriter object to receive the color data.
DrawStroke(PageWriter)
Draws the color data to the given PageWriter object.
public void DrawStroke(PageWriter writer)
Sub DrawStroke(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the color data.
Equals(Object)
Tests equality of colors. (Inherited from Color)
public abstract bool Equals(Object obj)
MustOverride 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
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 Color)
public abstract int GetHashCode()
MustOverride Function GetHashCode() As Integer
Returns
A hash code for the current Color .
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.
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 .
ToStringBuilder(StringBuilder)
Appends the color information to the given StringBuilder object.
public abstract void ToStringBuilder(StringBuilder stringBuilder)
MustOverride Sub ToStringBuilder(stringBuilder As StringBuilder)
Parameters
- stringBuilder: StringBuilder
StringBuilder to receive the color information.