/// <summary>Copy constructor.</summary>
 /// <param name="source">the Graphics State to copy from</param>
 public CanvasGraphicsState(iText.Kernel.Pdf.Canvas.CanvasGraphicsState source)
 {
     // color
     // text state
     // horizontal scaling
     // alpha constant
     // alpha source
     CopyFrom(source);
 }
Esempio n. 2
0
 private void CopyFrom(iText.Kernel.Pdf.Canvas.CanvasGraphicsState source)
 {
     this.ctm                        = source.ctm;
     this.strokeColor                = source.strokeColor;
     this.fillColor                  = source.fillColor;
     this.charSpacing                = source.charSpacing;
     this.wordSpacing                = source.wordSpacing;
     this.scale                      = source.scale;
     this.leading                    = source.leading;
     this.font                       = source.font;
     this.fontSize                   = source.fontSize;
     this.textRenderingMode          = source.textRenderingMode;
     this.textRise                   = source.textRise;
     this.textKnockout               = source.textKnockout;
     this.lineWidth                  = source.lineWidth;
     this.lineCapStyle               = source.lineCapStyle;
     this.lineJoinStyle              = source.lineJoinStyle;
     this.miterLimit                 = source.miterLimit;
     this.dashPattern                = source.dashPattern;
     this.renderingIntent            = source.renderingIntent;
     this.automaticStrokeAdjustment  = source.automaticStrokeAdjustment;
     this.blendMode                  = source.blendMode;
     this.softMask                   = source.softMask;
     this.strokeAlpha                = source.strokeAlpha;
     this.fillAlpha                  = source.fillAlpha;
     this.alphaIsShape               = source.alphaIsShape;
     this.strokeOverprint            = source.strokeOverprint;
     this.fillOverprint              = source.fillOverprint;
     this.overprintMode              = source.overprintMode;
     this.blackGenerationFunction    = source.blackGenerationFunction;
     this.blackGenerationFunction2   = source.blackGenerationFunction2;
     this.underColorRemovalFunction  = source.underColorRemovalFunction;
     this.underColorRemovalFunction2 = source.underColorRemovalFunction2;
     this.transferFunction           = source.transferFunction;
     this.transferFunction2          = source.transferFunction2;
     this.halftone                   = source.halftone;
     this.flatnessTolerance          = source.flatnessTolerance;
     this.smoothnessTolerance        = source.smoothnessTolerance;
     this.htp                        = source.htp;
 }
Esempio n. 3
0
 /// <summary>Copy constructor.</summary>
 /// <param name="source">the Graphics State to copy from</param>
 public CanvasGraphicsState(iText.Kernel.Pdf.Canvas.CanvasGraphicsState source)
 {
     CopyFrom(source);
 }