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); }
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()); }
void iDrawContext.drawText(string text, iFont font, Rect layoutRect, iBrush foreground, iBrush background) { drawText(text, (Font)font, ref layoutRect, foreground.data(), background.data()); }
void iDrawContext.fillRectangle(Rect rect, iBrush brush) => fillRectangle(ref rect, brush.data());
void iDrawContext.drawRectangle(Rect rect, iBrush brush, float width) => drawRectangle(ref rect, width, brush.data().paletteIndex);