Class PdfSeparationColorSpace
Represents a separation colorspace
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Pdf.ColorSpace
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfSeparationColorSpace : PdfColorSpaces, IPdfCache, IPdfWrapper
Examples
// Creates a new document
PdfDocument doc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = doc.Pages.Add();
// Creates ExponentialInterpolationFunction function
PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true);
float[] numArray = new float[4];
numArray[0] = 0.38f;
numArray[1] = 0.88f;
function.C1 = numArray;
// Creates SeparationColorSpace
PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace();
colorspace.TintTransform = function;
colorspace.Colorant = "PANTONE Orange 021 C";
PdfSeparationColor color = new PdfSeparationColor(colorspace);
color.Tint = 0.7;
RectangleF rect = new RectangleF(20, 70, 200, 100);
PdfPen pen = new PdfPen(color);
page.Graphics.DrawRectangle(pen, rect);
doc.Save("SeparationColor.pdf");
' Creates a new document
Dim doc As PdfDocument = New PdfDocument()
' Create a page
Dim page As PdfPage = doc.Pages.Add()
' Creates ExponentialInterpolationFunction function
Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True)
Dim numArray() As Single = New Single(3){}
numArray(0) = 0.38f
numArray(1) = 0.88f
[function].C1 = numArray
' Creates SeparationColorSpace
Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace()
colorspace.TintTransform = [function]
colorspace.Colorant = "PANTONE Orange 021 C"
Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace)
color.Tint = 0.7
Dim rect As RectangleF = New RectangleF(20, 70, 200, 100)
Dim pen As PdfPen = New PdfPen(color)
page.Graphics.DrawRectangle(pen, rect)
doc.Save("SeparationColor.pdf")
Constructors
PdfSeparationColorSpace()
Initializes a new instance of the PdfSeparationColorSpace class.
Declaration
public PdfSeparationColorSpace()
Examples
// Creates a new document
PdfDocument doc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = doc.Pages.Add();
// Creates ExponentialInterpolationFunction function
PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true);
float[] numArray = new float[4];
numArray[0] = 0.38f;
numArray[1] = 0.88f;
function.C1 = numArray;
// Creates SeparationColorSpace
PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace();
colorspace.TintTransform = function;
colorspace.Colorant = "PANTONE Orange 021 C";
PdfSeparationColor color = new PdfSeparationColor(colorspace);
color.Tint = 0.7;
RectangleF rect = new RectangleF(20, 70, 200, 100);
PdfPen pen = new PdfPen(color);
page.Graphics.DrawRectangle(pen, rect);
doc.Save("SeparationColor.pdf");
' Creates a new document
Dim doc As PdfDocument = New PdfDocument()
' Create a page
Dim page As PdfPage = doc.Pages.Add()
' Creates ExponentialInterpolationFunction function
Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True)
Dim numArray() As Single = New Single(3){}
numArray(0) = 0.38f
numArray(1) = 0.88f
[function].C1 = numArray
' Creates SeparationColorSpace
Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace()
colorspace.TintTransform = [function]
colorspace.Colorant = "PANTONE Orange 021 C"
Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace)
color.Tint = 0.7
Dim rect As RectangleF = New RectangleF(20, 70, 200, 100)
Dim pen As PdfPen = New PdfPen(color)
page.Graphics.DrawRectangle(pen, rect)
doc.Save("SeparationColor.pdf")
See Also
Properties
AlternateColorSpaces
Gets or sets the alternate color spaces.
Declaration
public PdfColorSpaces AlternateColorSpaces { get; set; }
Property Value
Type | Description |
---|---|
PdfColorSpaces | The alternate color space to be used when the destination device does not support separation colorspace. |
Examples
// Creates a new document
PdfDocument doc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = doc.Pages.Add();
// Creates ExponentialInterpolationFunction function
PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true);
float[] numArray = new float[4];
numArray[0] = 0.38f;
numArray[1] = 0.88f;
function.C1 = numArray;
// Creates SeparationColorSpace
PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace();
colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale);
colorspace.TintTransform = function;
colorspace.Colorant = "PANTONE Orange 021 C";
PdfSeparationColor color = new PdfSeparationColor(colorspace);
color.Tint = 0.7;
RectangleF rect = new RectangleF(20, 70, 200, 100);
PdfPen pen = new PdfPen(color);
page.Graphics.DrawRectangle(pen, rect);
doc.Save("SeparationColor.pdf");
' Creates a new document
Dim doc As PdfDocument = New PdfDocument()
' Create a page
Dim page As PdfPage = doc.Pages.Add()
' Creates ExponentialInterpolationFunction function
Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True)
Dim numArray() As Single = New Single(3){}
numArray(0) = 0.38f
numArray(1) = 0.88f
[function].C1 = numArray
' Creates SeparationColorSpace
Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace()
colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale)
colorspace.TintTransform = [function]
colorspace.Colorant = "PANTONE Orange 021 C"
Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace)
color.Tint = 0.7
Dim rect As RectangleF = New RectangleF(20, 70, 200, 100)
Dim pen As PdfPen = New PdfPen(color)
page.Graphics.DrawRectangle(pen, rect)
doc.Save("SeparationColor.pdf")
See Also
Colorant
Gets or sets the colorant represented by this separation colorspace.
Declaration
public string Colorant { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the colorant. |
Examples
// Creates a new document
PdfDocument doc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = doc.Pages.Add();
// Creates ExponentialInterpolationFunction function
PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true);
float[] numArray = new float[4];
numArray[0] = 0.38f;
numArray[1] = 0.88f;
function.C1 = numArray;
// Creates SeparationColorSpace
PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace();
colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale);
colorspace.TintTransform = function;
colorspace.Colorant = "PANTONE Orange 021 C";
PdfSeparationColor color = new PdfSeparationColor(colorspace);
color.Tint = 0.7;
RectangleF rect = new RectangleF(20, 70, 200, 100);
PdfPen pen = new PdfPen(color);
page.Graphics.DrawRectangle(pen, rect);
doc.Save("SeparationColor.pdf");
' Creates a new document
Dim doc As PdfDocument = New PdfDocument()
' Create a page
Dim page As PdfPage = doc.Pages.Add()
' Creates ExponentialInterpolationFunction function
Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True)
Dim numArray() As Single = New Single(3){}
numArray(0) = 0.38f
numArray(1) = 0.88f
[function].C1 = numArray
' Creates SeparationColorSpace
Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace()
colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale)
colorspace.TintTransform = [function]
colorspace.Colorant = "PANTONE Orange 021 C"
Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace)
color.Tint = 0.7
Dim rect As RectangleF = New RectangleF(20, 70, 200, 100)
Dim pen As PdfPen = New PdfPen(color)
page.Graphics.DrawRectangle(pen, rect)
doc.Save("SeparationColor.pdf")
See Also
TintTransform
Gets or sets the tint transform function for the this colorspace.
Declaration
public PdfFunction TintTransform { get; set; }
Property Value
Type | Description |
---|---|
PdfFunction | Tint transform function for the colorspace. |
Examples
// Creates a new document
PdfDocument doc = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = doc.Pages.Add();
// Creates ExponentialInterpolationFunction function
PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true);
float[] numArray = new float[4];
numArray[0] = 0.38f;
numArray[1] = 0.88f;
function.C1 = numArray;
// Creates SeparationColorSpace
PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace();
colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale);
colorspace.TintTransform = function;
colorspace.Colorant = "PANTONE Orange 021 C";
PdfSeparationColor color = new PdfSeparationColor(colorspace);
color.Tint = 0.7;
RectangleF rect = new RectangleF(20, 70, 200, 100);
PdfPen pen = new PdfPen(color);
page.Graphics.DrawRectangle(pen, rect);
doc.Save("SeparationColor.pdf");
' Creates a new document
Dim doc As PdfDocument = New PdfDocument()
' Create a page
Dim page As PdfPage = doc.Pages.Add()
' Creates ExponentialInterpolationFunction function
Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True)
Dim numArray() As Single = New Single(3){}
numArray(0) = 0.38f
numArray(1) = 0.88f
[function].C1 = numArray
' Creates SeparationColorSpace
Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace()
colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale)
colorspace.TintTransform = [function]
colorspace.Colorant = "PANTONE Orange 021 C"
Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace)
color.Tint = 0.7
Dim rect As RectangleF = New RectangleF(20, 70, 200, 100)
Dim pen As PdfPen = New PdfPen(color)
page.Graphics.DrawRectangle(pen, rect)
doc.Save("SeparationColor.pdf")
See Also
Methods
GetProfileData()
Get the profile data.
Declaration
public byte[] GetProfileData()
Returns
Type | Description |
---|---|
System.Byte[] | The profile data |
Save()
Saves an instance.
Declaration
protected void Save()