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)
        return;

      wand.PathStart();
      foreach (IPath path in _Paths)
        path.Draw(wand);
      wand.PathFinish();
    }
Example #2
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);
 }
 /// <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);
 }
 /// <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);
 }
 /// <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);
 }
Example #6
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);
 }
Example #7
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 IPath.Draw(IDrawingWand wand)
 {
   if (wand != null)
     wand.PathSmoothQuadraticCurveToAbs(_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.PushPattern(ID, X, Y, Width, Height);
 }
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.FillColor(Color);
 }
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.Affine(ScaleX, ScaleY, ShearX, ShearY, TranslateX, TranslateY);
 }
Example #12
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 #13
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 #14
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);
 }
Example #15
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 #16
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 #17
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);
 }
 /// <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);
 }
 /// <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);
 }
Example #20
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);
    }
 /// <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);
 }
 /// <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.StrokeAntialias(IsEnabled);
 }
Example #24
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());
 }
Example #25
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.PopGraphicContext();
 }
Example #27
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 #28
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());
 }
 /// <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);
 }