示例#1
0
        void iDrawContext.fillAndStroke(iGeometry geometry, iBrush fill, iBrush stroke, float strokeWidth, iStrokeStyle strokeStyle)
        {
            sStrokeStyle  ss   = strokeStyle?.strokeStyle ?? defaultStrokeStyle();
            iPathGeometry path = (iPathGeometry)geometry;

            fillAndStrokeGeometry(path, fill.data(), stroke.data(), strokeWidth, ref ss);
        }
示例#2
0
        void iDrawContext.drawConsoleText(string text, int width, float fontSize, Vector2 position, iBrush foreground, iBrush background)
        {
            var font = getMonospaceFont(fontSize);

            drawConsoleText(text, width, font, position, foreground.data(), background.data());
        }
示例#3
0
 void iDrawContext.drawText(string text, iFont font, Rect layoutRect, iBrush foreground, iBrush background)
 {
     drawText(text, (Font)font, ref layoutRect, foreground.data(), background.data());
 }
示例#4
0
 void iDrawContext.fillRectangle(Rect rect, iBrush brush) =>
 fillRectangle(ref rect, brush.data());
示例#5
0
 void iDrawContext.drawRectangle(Rect rect, iBrush brush, float width) =>
 drawRectangle(ref rect, width, brush.data().paletteIndex);