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; }
public override void SetColorStroke(PdfSpotColor sp, float tint) { ThrowError(); }
/** 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; }
/** * @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); }
public SpotColor(PdfSpotColor spot) : this(spot, spot.Tint) { }