Пример #1
0
 public SpotColor(PdfSpotColor spot, float tint) :
     base(TYPE_SEPARATION,
          ((float)spot.AlternativeCS.R / 255f - 1f) * tint + 1,
          ((float)spot.AlternativeCS.G / 255f - 1f) * tint + 1,
          ((float)spot.AlternativeCS.B / 255f - 1f) * tint + 1)
 {
     this.spot = spot;
     this.tint = tint;
 }
Пример #2
0
 /** Each spot color used in a document has an instance of this class.
  * @param colorName the color name
  * @param indirectReference the indirect reference to the font
  * @param scolor the <CODE>PDfSpotColor</CODE>
  */
 internal ColorDetails(PdfName colorName, PdfIndirectReference indirectReference, PdfSpotColor scolor)
 {
     this.colorName         = colorName;
     this.indirectReference = indirectReference;
     this.spotcolor         = scolor;
 }
Пример #3
0
 /**
  * @see com.lowagie.text.pdf.PdfContentByte#setColorStroke(com.lowagie.text.pdf.PdfSpotColor, float)
  */
 public override void SetColorStroke(PdfSpotColor sp, float tint)
 {
     CheckNoColor();
     base.SetColorStroke(sp, tint);
 }
Пример #4
0
 public SpotColor(PdfSpotColor spot) : this(spot, spot.Tint)
 {
 }
Пример #5
0
 public override void SetColorStroke(PdfSpotColor sp, float tint)
 {
     ThrowError();
 }