Exemplo n.º 1
0
 sDrawCommand(iPathGeometry geometry, eMesh command, sStrokeStyle ss, float w)
 {
     this.geometry = geometry;
     this.command  = command;
     strokeStyle   = ss;
     width         = w;
 }
Exemplo n.º 2
0
        public static sDrawCall drawText(Order order, ref Matrix3x2 trans, int color, int backgroundColor, bool opaqueBackground, float physicalPixelSize, eTextRendering textRendering)
        {
            eMesh  mesh  = (textRendering == eTextRendering.GrayscaleTransformed) ? eMesh.TransformedText : eMesh.GlyphRun;
            eBrush brush = opaqueBackground ? eBrush.OpaqueColor : eBrush.SolidColor;

            eClearTypeKind clearTypeKind;

            if (textRendering == eTextRendering.ClearTypeHorizontal)
            {
                clearTypeKind = eClearTypeKind.Straight;
            }
            else
            {
                clearTypeKind = eClearTypeKind.None;
            }
            DrawCallType dc = new DrawCallType(brush, mesh, clearTypeKind);

            return(new sDrawCall(dc, ref trans, physicalPixelSize, color, backgroundColor, MiscUtils.one, order));
        }
Exemplo n.º 3
0
 static bool isTextImpl(eMesh mesh)
 {
     return(mesh == eMesh.GlyphRun || mesh == eMesh.TransformedText);
 }
Exemplo n.º 4
0
 public DrawCallType(eMesh mesh, eVaaKind vaa) :
     this(eBrush.SolidColor, mesh, vaa)
 {
 }
Exemplo n.º 5
0
 public DrawCallType(eBrush brush, eMesh mesh, eClearTypeKind clearType)
 {
     value = MiscUtils.combine((byte)brush, (byte)mesh, (byte)clearType);
 }
Exemplo n.º 6
0
 public DrawCallType(eBrush brush, eMesh mesh, eVaaKind vaa)
 {
     value = MiscUtils.combine((byte)brush, (byte)mesh, (byte)vaa);
 }