Ejemplo n.º 1
0
 public DrawingTargetSplitter(
     IDrawingBackend backend,
     IDrawingState state,
     IDrawingTransform transform,
     IGeometryFigures figures,
     IDrawingElements elements,
     ITextMeasurements measurements,
     IDrawingTargetBitmap bitmap,
     IReportingTarget reporting,
     Action disposer)
 {
     _backend = backend;
     _bitmap = bitmap;
     _state = state;
     _transform = transform;
     _figures = figures;
     _elements = elements;
     _measurements = measurements;
     _reporting = reporting;
     _disposer = disposer;
 }
Ejemplo n.º 2
0
 public DrawingTargetSplitter(
     IDrawingBackend backend,
     IDrawingState state,
     IDrawingTransform transform,
     IGeometryFigures figures,
     IDrawingElements elements,
     ITextMeasurements measurements,
     IDrawingTargetBitmap bitmap,
     IReportingTarget reporting,
     Action disposer)
 {
     _backend      = backend;
     _bitmap       = bitmap;
     _state        = state;
     _transform    = transform;
     _figures      = figures;
     _elements     = elements;
     _measurements = measurements;
     _reporting    = reporting;
     _disposer     = disposer;
 }
Ejemplo n.º 3
0
 public static void Bezier(this IGeometryFigures _, Point start, Point span1, Point span2, Point end)
 {
     _.Bezier(new CubicBezier(start, span1, span2, end));
 }
Ejemplo n.º 4
0
 public static void Bezier(this IGeometryFigures _, double x, double y, double s1x, double s1y, double s2x, double s2y, double ex, double ey)
 {
     _.Bezier(new Point(x, y), new Point(s1x, s1y), new Point(s2x, s2y), new Point(ex, ey));
 }
Ejemplo n.º 5
0
 public static void Arc(this IGeometryFigures _, double x, double y, double width, double height, double start, double stop)
 {
     _.Arc(new Rectangle(x, y, width, height), start, stop);
 }
Ejemplo n.º 6
0
 public static void Ellipse(this IGeometryFigures _, double x, double y, double width, double height)
 {
     _.Ellipse(new Rectangle(x, y, width, height));
 }
Ejemplo n.º 7
0
 public static void Polygon(this IGeometryFigures _, params double[] pairs)
 {
     _.Polygon(pairs.ToPoints());
 }
Ejemplo n.º 8
0
 public static void RoundedRectangle(this IGeometryFigures _, double x, double y, double width, double height, double cornerRadius)
 {
     _.RoundedRectangle(new Rectangle(x, y, width, height), cornerRadius);
 }
Ejemplo n.º 9
0
 public static void Line(this IGeometryFigures _, double x1, double y1, double x2, double y2)
 {
     _.Line(new Point(x1, y1), new Point(x2, y2));
 }