Example #1
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Affine(ScaleX, ScaleY, ShearX, ShearY, TranslateX, TranslateY);
     }
 }
Example #2
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Polygon(_Coordinates.ToList());
     }
 }
 void IPath.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.PathSmoothQuadraticCurveToAbs(_End);
     }
 }
Example #4
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Composite(X, Y, Width, Height, Compose, _Image);
     }
 }
Example #5
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.StrokeColor(Color);
     }
 }
Example #6
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Arc(StartX, StartY, EndX, EndY, StartDegrees, EndDegrees);
     }
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.RoundRectangle(CenterX, CenterY, Width, Height, CornerWidth, CornerHeight);
     }
 }
Example #8
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Viewbox(UpperLeftX, UpperLeftY, LowerRightX, LowerRightY);
     }
 }
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.TextAlignment(Alignment);
     }
 }
Example #10
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Translation(X, Y);
     }
 }
Example #11
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Gravity(Gravity);
     }
 }
Example #12
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.FillColor(Color);
     }
 }
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.StrokeDashOffset(Offset);
     }
 }
Example #14
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.PopPattern();
     }
 }
Example #15
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.TextUnderColor(Color);
     }
 }
Example #16
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Density(Density);
     }
 }
Example #17
0
 void IPath.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.PathLineToRel(_Coordinates.ToList());
     }
 }
Example #18
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Scaling(X, Y);
     }
 }
Example #19
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.StrokeWidth(Width);
     }
 }
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.TextAntialias(IsEnabled);
     }
 }
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.StrokePatternUrl(Url);
     }
 }
Example #22
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.PathQuadraticCurveToAbs(_ControlPoint, _End);
     }
 }
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.FontPointSize(PointSize);
     }
 }
Example #24
0
 void IPath.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.PathCurveToRel(_ControlPointStart, _ControlPointEnd, _End);
     }
 }
Example #25
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.PathClose();
     }
 }
Example #26
0
 void IPath.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.PathLineToVerticalAbs(Y);
     }
 }
Example #27
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Alpha(X, Y, PaintMethod);
     }
 }
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.StrokeLineJoin(LineJoin);
     }
 }
Example #29
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.TextEncoding(Encoding);
     }
 }
Example #30
0
 void IDrawable.Draw(IDrawingWand wand)
 {
     if (wand != null)
     {
         wand.Circle(OriginX, OriginY, PerimeterX, PerimeterY);
     }
 }
Example #31
0
    /// <summary>
    /// Draws this instance with the drawing wand.
    /// </summary>
    /// <param name="wand">The want to draw on.</param>
    void IDrawable.Draw(IDrawingWand wand)
    {
      if (wand == null)
        return;

      wand.PathStart();
      foreach (IPath path in _Paths)
        path.Draw(wand);
      wand.PathFinish();
    }
Example #32
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathArcRel(_Coordinates.ToList());
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.StrokePatternUrl(Url);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.TextKerning(Kerning);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PopGraphicContext();
 }
Example #36
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.ClipRule(FillRule);
 }
Example #37
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathLineToAbs(_Coordinates.ToList());
 }
Example #38
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.Scaling(X, Y);
 }
Example #39
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.Polyline(_Coordinates.ToList());
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.BorderColor(Color);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathSmoothQuadraticCurveToAbs(_End);
 }
Example #42
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathMoveToRel(_Coordinate.X, _Coordinate.Y);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathLineToHorizontalAbs(X);
 }
Example #44
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.Rotation(Angle);
 }
Example #45
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.Viewbox(UpperLeftX, UpperLeftY, LowerRightX, LowerRightY);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.StrokeAntialias(IsEnabled);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.StrokeWidth(Width);
 }
Example #48
0
    /// <summary>
    /// Draws this instance with the drawing wand.
    /// </summary>
    /// <param name="wand">The want to draw on.</param>
    void IDrawable.Draw(IDrawingWand wand)
    {
      if (wand == null)
        return;

      foreach (string extension in _FontExtensions)
      {
        if (Family.EndsWith(extension, StringComparison.OrdinalIgnoreCase))
        {
          wand.Font(Family);
          return;
        }
      }

      wand.FontFamily(Family, Style, Weight, Stretch);
    }
Example #49
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathClose();
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.StrokeMiterLimit(Miterlimit);
 }
Example #51
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.FillColor(Color);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PushPattern(ID, X, Y, Width, Height);
 }
Example #53
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.Composite(X, Y, Width, Height, Compose, _Image);
 }
Example #54
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.Affine(ScaleX, ScaleY, ShearX, ShearY, TranslateX, TranslateY);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.StrokeDashOffset(Offset);
 }
Example #56
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.Point(X, Y);
 }
Example #57
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.SkewY(Angle);
 }
Example #58
0
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathCurveToRel(_ControlPointStart, _ControlPointEnd, _End);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IDrawable.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.StrokeOpacity((double)Opacity / 100);
 }
 /// <summary>
 /// Draws this instance with the drawing wand.
 /// </summary>
 /// <param name="wand">The want to draw on.</param>
 void IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathSmoothCurveToAbs(_ControlPoint, _End);
 }