Пример #1
0
 /// <summary>Tessellate splines and clip the result to viewport, using specified clipping rectangle</summary>
 public static eClipResult buildClippedPolylines(this iPathGeometry path, iPolylinePath poly, Rect clipRect, Matrix3x2 transform, float precision, float strokeWidth = 0)
 {
     unsafe
     {
         Rect *clip = &clipRect;
         path.buildPolylines(precision, strokeWidth, ref transform, (IntPtr)clip, poly, out var res);
         return(res);
     }
 }
Пример #2
0
 /// <summary>Tessellate splines and clip the result to viewport, using default clipping rectangle</summary>
 public static eClipResult buildClippedPolylines(this iPathGeometry path, iPolylinePath poly, Matrix3x2 transform, float precision, float strokeWidth = 0)
 {
     path.buildPolylines(precision, strokeWidth, ref transform, IntPtr.Zero, poly, out var res);
     return(res);
 }