Exemplo n.º 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;
                }
            }
Exemplo n.º 2
0
        public static SKStrokeJoin ToSkia(
            this LineJoinEnum lineJoin
            )
        {
            switch (lineJoin)
            {
            case LineJoinEnum.Bevel:
                return(SKStrokeJoin.Bevel);

            case LineJoinEnum.Miter:
                return(SKStrokeJoin.Miter);

            case LineJoinEnum.Round:
                return(SKStrokeJoin.Round);

            default:
                throw new NotSupportedException(lineJoin + " convertion not supported.");
            }
        }
Exemplo n.º 3
0
 public SetLineJoin(
     LineJoinEnum value
     ) : base(OperatorKeyword, new PdfInteger((int)value))
 {
 }
Exemplo n.º 4
0
   public SetLineJoin(
 LineJoinEnum value
 )
       : base(OperatorKeyword, PdfInteger.Get((int)value))
   {
   }