コード例 #1
0
            internal void Initialize(
                )
            {
                // State parameters initialization.
                blendMode        = ExtGState.DefaultBlendMode;
                charSpace        = 0;
                ctm              = GetInitialCtm();
                fillColor        = colors::DeviceGrayColor.Default;
                fillColorSpace   = colors::DeviceGrayColorSpace.Default;
                font             = null;
                fontSize         = 0;
                lead             = 0;
                lineCap          = LineCapEnum.Butt;
                lineDash         = new LineDash();
                lineJoin         = LineJoinEnum.Miter;
                lineWidth        = 1;
                miterLimit       = 10;
                renderMode       = TextRenderModeEnum.Fill;
                rise             = 0;
                scale            = 100;
                strokeColor      = colors::DeviceGrayColor.Default;
                strokeColorSpace = colors::DeviceGrayColorSpace.Default;
                tlm              = new Matrix();
                tm        = new Matrix();
                wordSpace = 0;

                // Rendering context initialization.
                Graphics renderContext = Scanner.RenderContext;

                if (renderContext != null)
                {
                    renderContext.Transform = ctm;
                }
            }
コード例 #2
0
ファイル: TextStyle.cs プロジェクト: josuecorrea/DanfeSharp
   public TextStyle(
 Font font,
 double fontSize,
 TextRenderModeEnum renderMode,
 Color strokeColor,
 ColorSpace strokeColorSpace,
 Color fillColor,
 ColorSpace fillColorSpace
 )
   {
       this.font = font;
         this.fontSize = fontSize;
         this.renderMode = renderMode;
         this.strokeColor = strokeColor;
         this.strokeColorSpace = strokeColorSpace;
         this.fillColor = fillColor;
         this.fillColorSpace = fillColorSpace;
   }
コード例 #3
0
ファイル: TextStyle.cs プロジェクト: systembugtj/bookasa
 public TextStyle(
     Font font,
     float fontSize,
     TextRenderModeEnum renderMode,
     Color strokeColor,
     ColorSpace strokeColorSpace,
     Color fillColor,
     ColorSpace fillColorSpace
     )
 {
     this.font             = font;
     this.fontSize         = fontSize;
     this.renderMode       = renderMode;
     this.strokeColor      = strokeColor;
     this.strokeColorSpace = strokeColorSpace;
     this.fillColor        = fillColor;
     this.fillColorSpace   = fillColorSpace;
 }
コード例 #4
0
ファイル: TextStyle.cs プロジェクト: iWeaverMan/pdf-clown
 public TextStyle(
     Font font,
     double fontSize,
     TextRenderModeEnum renderMode,
     Color strokeColor,
     ColorSpace strokeColorSpace,
     Color fillColor,
     ColorSpace fillColorSpace,
     double scaleX,
     double scaleY
     )
 {
     this.font             = font;
     this.fontSize         = fontSize;
     this.renderMode       = renderMode;
     this.strokeColor      = strokeColor;
     this.strokeColorSpace = strokeColorSpace;
     this.fillColor        = fillColor;
     this.fillColorSpace   = fillColorSpace;
     this.scaleX           = scaleX;
     this.scaleY           = scaleY;
 }
コード例 #5
0
 public SetTextRenderMode(
     TextRenderModeEnum value
     ) : base(OperatorKeyword, new PdfInteger((int)value))
 {
 }
コード例 #6
0
   public SetTextRenderMode(
 TextRenderModeEnum value
 )
       : base(OperatorKeyword, PdfInteger.Get((int)value))
   {
   }