public static ToDrawingColor ( Color c ) : |
||
c | Color | |
Résultat |
public override void FillRectangle(double left, double bottom, double right, double top, Color fillColor) { System.Drawing.Color prevColor = _currentFillBrush.Color; _currentFillBrush.Color = VxsHelper.ToDrawingColor(fillColor); _gfx.FillRectangle(_currentFillBrush, System.Drawing.RectangleF.FromLTRB((float)left, (float)top, (float)right, (float)bottom)); _currentFillBrush.Color = prevColor; }
public override void Line(double x1, double y1, double x2, double y2, Color color) { var prevColor = _currentPen.Color; _currentPen.Color = VxsHelper.ToDrawingColor(color); _gfx.DrawLine(_currentPen, new System.Drawing.PointF((float)x1, (float)y1), new System.Drawing.PointF((float)x2, (float)y2)); _currentPen.Color = prevColor; }
public override void FillCircle(double x, double y, double radius, Drawing.Color color) { var prevColor = _currentFillBrush.Color; _currentFillBrush.Color = VxsHelper.ToDrawingColor(color); _gfx.FillEllipse(_currentFillBrush, (float)x, (float)y, (float)(radius + radius), (float)(radius + radius)); _currentFillBrush.Color = prevColor; }
public override void Clear(Color color) { _gfx.Clear(VxsHelper.ToDrawingColor(color)); }
public override void Clear(ColorRGBA color) { _internalGfx.Clear(VxsHelper.ToDrawingColor(color)); }