Click or drag to resize

PdfColorSpace Class

Represents a color system of a PDF content.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.Pdf.ContentPdfContentResource
      SautinSoft.Pdf.Content.ColorsPdfColorSpace

Namespace: SautinSoft.Pdf.Content.Colors
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
public abstract class PdfColorSpace : PdfContentResource

The PdfColorSpace type exposes the following members.

Properties
 NameDescription
Public propertyColorantCount Gets the number of color components in the color space.
Public propertyStatic memberDeviceCMYK Gets the single instance of the DeviceCMYK color space.
Public propertyStatic memberDeviceGray Gets the single instance of the DeviceGray color space.
Public propertyStatic memberDeviceRGB Gets the single instance of the DeviceRGB color space.
Public propertyFamily Gets the type of the color space.
Public propertyStatic memberPattern Gets the single instance of the Pattern color space used with colored tiling patterns.
Top
Methods
 NameDescription
Public methodEquals Determines whether the specified Object is equal to this PdfColorSpace instance.
(Overrides ObjectEquals(Object))
Public methodStatic memberFromArray Gets or creates a PdfColorSpace from the specified PdfArray whose first element is a PdfName object identifying the color space family. The remaining PdfArray elements, if any, are parameters that further characterize the color space; their number and types vary according to the particular PdfColorSpaceFamily.
Public methodGetHashCode Returns a hash code for this PdfColorSpace instance.
(Overrides ObjectGetHashCode)
Public methodToString Returns a String that represents this PdfColorSpace instance.
(Overrides ObjectToString)
Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also