public void DrawTriangle(
     int x1,
     int y1,
     int x2,
     int y2,
     int x3,
     int y3,
     System.Drawing.Color borderColor,
     System.Drawing.Color fillColor)
 {
     P1.Set(x1, y1);
     P2.Set(x2, y2);
     P3.Set(x3, y3);
     TransformPoint(P1, P1);
     TransformPoint(P2, P2);
     TransformPoint(P3, P3);
     SourceDrawOperations.DrawTriangle(
         P1.X,
         P1.Y,
         P2.X,
         P2.Y,
         P3.X,
         P3.Y,
         borderColor,
         fillColor);
 }
 public void GradientFill4(Rect rect, System.Drawing.Color leftTop, System.Drawing.Color rightTop, System.Drawing.Color leftBottom, System.Drawing.Color rightBottom, int steps)
 {
     TransformRect(rect);
     SourceDrawOperations.GradientFill4(
         rect,
         leftTop, rightTop, leftBottom, rightBottom, steps);
 }
 public override void DrawLine(int x1, int y1, int x2, int y2, System.Drawing.Color lineColor, int lineWidth)
 {
     P1.Set(x1, y1);
     P2.Set(x2, y2);
     TransformPoint(P1);
     TransformPoint(P2);
     SourceDrawOperations.DrawLine(P1.X, P1.Y, P2.X, P2.Y, lineColor, lineWidth);
 }
 public override void DrawLine(int x1, int y1, int x2, int y2, ILineStyleInfo theStyle)
 {
     P1.Set(x1, y1);
     P2.Set(x2, y2);
     TransformPoint(P1, P1);
     TransformPoint(P2, P2);
     SourceDrawOperations.DrawLine(P1.X, P1.Y, P2.X, P2.Y, theStyle);
 }
 public override void GradientLine(int x1, int y1, int x2, int y2, System.Drawing.Color startColor, System.Drawing.Color endColor, int lineWidth)
 {
     P1.Set(x1, y1);
     P2.Set(x2, y2);
     TransformPoint(P1);
     TransformPoint(P2);
     SourceDrawOperations.GradientLine(
         P1.X,
         P1.Y,
         P2.X,
         P2.Y,
         startColor,
         endColor,
         lineWidth);
 }
 public void DrawPie(
     Rect theRect,
     double startAngleDegrees,
     double endAngleDegrees,
     System.Drawing.Color borderColor,
     System.Drawing.Color fillColor)
 {
     TransformRect(theRect);
     SourceDrawOperations.DrawPie(
         R,
         startAngleDegrees,
         endAngleDegrees,
         borderColor,
         fillColor);
 }
 public void DrawStringWithSelection(Rect Block, int StartSelPos, int CaretPosition, string Text, IFontStyleInfo FontStyle)
 {
     TransformRect(Block);
     SourceDrawOperations.DrawStringWithSelection(R, StartSelPos, CaretPosition, Text, FontStyle);
 }
 public Point StringSize(string Text, IFontInfo theFont)
 {
     return(SourceDrawOperations.StringSize(Text, theFont));
 }
 public void DrawString(string Text, Rect theRect, IFontStyleInfo theFont)
 {
     TransformRect(theRect);
     SourceDrawOperations.DrawString(Text, R, theFont);
 }
 public void FillPolygon(IList <Point> Points, ILineStyleInfo LineStyle, IFillStyleInfo FillStyle)
 {
     TransformPointList(Points);
     SourceDrawOperations.FillPolygon(Points, LineStyle, FillStyle);
 }
 public void GradientFillRectangle(Rect theRect, System.Drawing.Color Color1, System.Drawing.Color Color2, System.Drawing.Drawing2D.LinearGradientMode GradientType)
 {
     TransformRect(theRect);
     SourceDrawOperations.GradientFillRectangle(R, Color1, Color2, GradientType);
 }
 public void DrawRectangle(Rect theRect, System.Drawing.Color lineColor, int lineWidth)
 {
     TransformRect(theRect);
     SourceDrawOperations.DrawRectangle(R, lineColor, lineWidth);
 }
 public void DrawLine(Point p1, Point p2, ILineStyleInfo theStyle)
 {
     TransformPoint(p1, P1);
     TransformPoint(p2, P2);
     SourceDrawOperations.DrawLine(P1, P2, theStyle);
 }
 public void FillRectangle(Rect theRect, IFillStyleInfo theStyle)
 {
     TransformRect(theRect);
     SourceDrawOperations.FillRectangle(R, theStyle);
 }
 public void DrawShadow(Rect theRect)
 {
     TransformRect(theRect);
     SourceDrawOperations.DrawShadow(R);
 }
 public void DrawImage(IPicture picture, Point p)
 {
     TransformPoint(p, P1);
     SourceDrawOperations.DrawImage(picture, P1);
 }
 public void DrawEllipse(Rect theRect, ILineStyleInfo theStyle)
 {
     TransformRect(theRect);
     SourceDrawOperations.DrawEllipse(R, theStyle);
 }
 public void FillRectangle(Rect theRect, System.Drawing.Color fillColor)
 {
     TransformRect(theRect);
     SourceDrawOperations.FillRectangle(R, fillColor);
 }
 public void DrawFilledEllipse(Rect theRect, ILineStyleInfo Line, IFillStyleInfo Fill)
 {
     TransformRect(theRect);
     SourceDrawOperations.DrawFilledEllipse(R, Line, Fill);
 }
 public void DrawDotRectangle(Rect theRect, System.Drawing.Color lineColor)
 {
     TransformRect(theRect);
     SourceDrawOperations.DrawDotRectangle(R, lineColor);
 }