syntax
-
Hi everyone which one of these way is correct?why? Matrix m=new Matrix(); Rectangle rect=new Rectangle(0,0,10,10); PointF[] point= { .... }; Warp(point, rect, m, WarpMode.Perspective,0F); or Warp(new PointF[]{....}, new CRect(0,10,10,10), new Matrix(), WarpMode.Perspective,0F);
-
Hi everyone which one of these way is correct?why? Matrix m=new Matrix(); Rectangle rect=new Rectangle(0,0,10,10); PointF[] point= { .... }; Warp(point, rect, m, WarpMode.Perspective,0F); or Warp(new PointF[]{....}, new CRect(0,10,10,10), new Matrix(), WarpMode.Perspective,0F);
These are the overloads as defined[^] in the framework;
GraphicsPath.Warp (PointF[], RectangleF)
GraphicsPath.Warp (PointF[], RectangleF, Matrix)
GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode)
GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode, Single)Did that answer your question?
Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]
-
These are the overloads as defined[^] in the framework;
GraphicsPath.Warp (PointF[], RectangleF)
GraphicsPath.Warp (PointF[], RectangleF, Matrix)
GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode)
GraphicsPath.Warp (PointF[], RectangleF, Matrix, WarpMode, Single)Did that answer your question?
Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]
-
Hi everyone which one of these way is correct?why? Matrix m=new Matrix(); Rectangle rect=new Rectangle(0,0,10,10); PointF[] point= { .... }; Warp(point, rect, m, WarpMode.Perspective,0F); or Warp(new PointF[]{....}, new CRect(0,10,10,10), new Matrix(), WarpMode.Perspective,0F);
-
They are both syntactically correct. However, the first option is easier to debug when things start to go wrong.
One of these days I'm going to think of a really clever signature.