public Separation(String name, PdfColorSpace alternateSpace, PdfFunction tintTransform)
     : this(new PdfName(name), alternateSpace.GetPdfObject(), tintTransform.GetPdfObject())
 {
     if (!tintTransform.CheckCompatibilityWithColorSpace(alternateSpace))
     {
         throw new PdfException(PdfException.FunctionIsNotCompatibleWitColorSpace, this);
     }
 }
 public DeviceN(IList <String> names, PdfColorSpace alternateSpace, PdfFunction tintTransform)
     : this(new PdfArray(names, true), alternateSpace.GetPdfObject(), tintTransform.GetPdfObject())
 {
     if (tintTransform.GetInputSize() != GetNumberOfComponents() || tintTransform.GetOutputSize() != alternateSpace
         .GetNumberOfComponents())
     {
         throw new PdfException(PdfException.FunctionIsNotCompatibleWitColorSpace, this);
     }
 }
Example #3
0
 public virtual void SetFunction(PdfFunction function)
 {
     GetPdfObject().Put(PdfName.Function, function.GetPdfObject());
     SetModified();
 }