cete.dynamicpdf.grayscale
Grayscale
- Namespace: ceTe.DynamicPDF
- Assemblies: ceTe.DynamicPDF.40.dll
Represents a grayscale color.
public class Grayscale : DeviceColor
Public Class Grayscale
Inherits DeviceColor
Inheritance: Object → Color → DeviceColor → Grayscale
Licensing
This class is a DynamicPDF Generator Community Edition feature.
Remarks
See the Colors topic for more on grayscale colors.
Constructors
Grayscale(Byte)
Initializes a new instance of the Grayscale class.
public Grayscale(byte grayLevel)
Public Sub New (grayLevel As Byte)
Parameters
- grayLevel: Byte
The gray intensity.
Grayscale(Single)
Initializes a new instance of the Grayscale class.
public Grayscale(float grayLevel)
Public Sub New (grayLevel As Single)
Parameters
- grayLevel: Single
The gray intensity.
Properties
Black
Gets the color black.
public static Grayscale Black { get; }
Public Shared Property Black As Grayscale
Property Value
ColorSpace
Gets the color space for the color.
public ColorSpace ColorSpace { get; }
Public Property ColorSpace As ColorSpace
Property Value
Components
Gets the number of components for the device color.
public int Components { get; }
Public Property Components As Int32
Property Value
DarkGray
Gets the color dark gray.
public static Grayscale DarkGray { get; }
Public Shared Property DarkGray As Grayscale
Property Value
DimGray
Gets the color dim gray.
public static Grayscale DimGray { get; }
Public Shared Property DimGray As Grayscale
Property Value
Gray
Gets the color gray.
public static Grayscale Gray { get; }
Public Shared Property Gray As Grayscale
Property Value
GrayLevel
Gets the gray value.
public float GrayLevel { get; }
Public Property GrayLevel As Single
Property Value
LightGrey
Gets the color light grey.
public static Grayscale LightGrey { get; }
Public Shared Property LightGrey As Grayscale
Property Value
Silver
Gets the color silver.
public static Grayscale Silver { get; }
Public Shared Property Silver As Grayscale
Property Value
White
Gets the color white.
public static Grayscale White { get; }
Public Shared Property White As Grayscale
Property Value
Methods
DrawFill(OperatorWriter)
Draws the color data to the given PageWriter object.
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. (Inherited from DeviceColor)
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 PageWriter object.
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. (Inherited from DeviceColor)
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.
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
GetHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public int GetHashCode()
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 void ToStringBuilder(StringBuilder stringBuilder)
Sub ToStringBuilder(stringBuilder As StringBuilder)
Parameters
- stringBuilder: StringBuilder
StringBuilder to receive the color information.