cete.dynamicpdf.colorspace
ColorSpace
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.NETFramework40.dll, DynamicPDF.NETStandard20.dll
Represents a color space resource for a color.
public abstract class ColorSpace : Resource
Public MustInherit Class ColorSpace
Inherits Resource
Inheritance: Object → Resource → ColorSpace
Derived: SpotColorInk
Licensing
This class is a DynamicPDF Generator Community Edition feature.
Properties
DeviceCmyk
Gets the DeviceCmyk color space.
public static ColorSpace DeviceCmyk { get; }
Public Shared Property DeviceCmyk As ColorSpace
Property Value
DeviceGray
Gets the DeviceGray color space.
public static ColorSpace DeviceGray { get; }
Public Shared Property DeviceGray As ColorSpace
Property Value
DeviceRgb
Gets the DeviceRgb color space.
public static ColorSpace DeviceRgb { get; }
Public Shared Property DeviceRgb As ColorSpace
Property Value
Pattern
Gets the Pattern color space.
public static ColorSpace Pattern { get; }
Public Shared Property Pattern As ColorSpace
Property Value
RequiredPdfObjects
Gets the number of PDF objects required by the resource. (Inherited from Resource)
public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32
Property Value
ResourceType
Gets the type of resource. (Inherited from Resource)
public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType
Property Value
Uid
Gets the unique ID of the resource. (Inherited from Resource)
public long Uid { get; }
Public Property Uid As Int64
Property Value
Methods
Draw(DocumentWriter)
Draws the color space to the given DocumentWriter object.
public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter to receive the encoder's output.
DrawColorSpace(DocumentWriter)
Draws the color space to the specified DocumentWriter .
public abstract void DrawColorSpace(DocumentWriter writer)
MustOverride Sub DrawColorSpace(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter to receive color space.
DrawName(PageWriter)
Draws the color space name to the specified PageWriter .
public abstract void DrawName(PageWriter writer)
MustOverride Sub DrawName(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter to take the color space name.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
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 .