Example #1
0
 public void FillRectangle(Shape shape, Brush brush)
 {
     FillRectangle(shape.BoundingRectangle, brush);
 }
Example #2
0
 public void FillRectangle(RectangleF rectangle, Brush brush)
 {
     deviceContext.FillRectangle(Convert(rectangle), brush);
 }
Example #3
0
 public void DrawText(string text, TextFormat textFormat, RectangleF layoutRect, Brush foregroundBrush,
                      DrawTextOptions textOptions = DrawTextOptions.None)
 {
     deviceContext.DrawText(text, textFormat, Convert(layoutRect), foregroundBrush, textOptions);
 }
Example #4
0
 public void FillGeometry(Graphics.Drawing.Geometry geometry, Brush brush)
 {
     deviceContext.FillGeometry(geometry, brush);
 }
Example #5
0
 public void DrawLine(Line line, Brush brush, float strokeThickness = 1.0f)
 {
     deviceContext.DrawLine(line.P0 + line.Position.XY(), line.P1 + line.Position.XY(), brush, strokeThickness);
 }
Example #6
0
 public void FillEllipse(Ellipse ellipse, Brush brush)
 {
     deviceContext.FillEllipse(ellipse, brush);
 }
Example #7
0
 public void DrawEllipse(Ellipse ellipse, Brush brush, float strokeThickness = 1.0f)
 {
     deviceContext.DrawEllipse(ellipse, brush, strokeThickness);
 }
Example #8
0
 public void DrawRectangle(Shape shape, Brush brush, float strokeThickness = 1.0f)
 {
     deviceContext.DrawRectangle(Convert(shape.BoundingRectangle), brush, strokeThickness);
 }
Example #9
0
 public void DrawGeometry(Graphics.Drawing.Geometry geometry, Brush brush, float strokeThickness = 1.0f)
 {
     deviceContext.DrawGeometry(geometry, brush, strokeThickness);
 }