Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public virtual void SetFunction(PdfFunction function)
 {
     GetPdfObject().Put(PdfName.Function, function.GetPdfObject());
     SetModified();
 }