[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Graphics.ColorSpaces.ICCProfile

ICCProfile Class

Represents a PDF ICC profile stream.

Implements
Namespace: GrapeCity.Documents.Pdf.Graphics.ColorSpaces
Assembly: DS.Documents.Pdf.dll
Syntax
public class ICCProfile : PdfDictWrapper, IPdfDict
Public Class ICCProfile
    Inherits PdfDictWrapper
    Implements IPdfDict

Constructors

Name Description
ICCProfile()

Initializes a new instance of the ICCProfile class.

Properties

Name Description
N

Gets or sets the number of color components in the color space described by the ICC profile data.

This number shall match the number of components actually in the ICC profile. Valid values are 1, 3, or 4.

Range

Gets or sets an array of 2 x N numbers [min0 max0, min1 max1, ...] that shall specify the minimum and maximum valid values of the corresponding color components. These values shall match the information in the ICC profile.

Methods

Name Description
Create(Stream)

Creates an ICCProfile object for the specified ICC profile metadata.

This method returns null if metadata has invalid data or is in unknown format.

Create(string)

Creates an ICCProfile object for ICC profile metadata loaded from the specified file.

This method returns null if fileName has invalid data or is in unknown format.

GetMetadata()

Gets a Stream containing the metadata for the color space.

Notes:

  1. The stream returned by this method should be disposed after use.
  2. This method can return null if the metadata is empty.
SetMetadata(byte[])

Sets the metadata for the color space. Note! The method does NOT update N, it is user responsibility to set it to appropriate value.

Extension Methods