[]
Represents a PDF ICC profile stream.
public class ICCProfile : PdfDictWrapper, IPdfDict
Initializes a new instance of the ICCProfile class.
public ICCProfile()
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.
public int N { get; set; }
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.
public float[] Range { get; set; }
Creates an ICCProfile object for the specified ICC profile metadata.
This method returns null if metadata
has invalid data or is in unknown format.
public static ICCProfile Create(Stream metadata)
metadata
System.IO.StreamThe ICC profile metadata.
The ICCProfile object or null if metadata
contains invalid or unsupported data.
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.
public static ICCProfile Create(string fileName)
fileName
stringThe file containing the ICC profile metadata.
The ICCProfile object or null if fileName
contains invalid or unsupported data.
Gets a System.IO.Stream containing the metadata for the color space.
Notes:
public Stream GetMetadata()
A stream with the metadata.
Sets the metadata for the color space. Note! The method does NOT update N, it is user responsibility to set it to appropriate value.
public void SetMetadata(byte[] metadata)
metadata
byte[]The metadata.