Пример #1
0
 /// <summary>True if the transformed approximate bounds of the geometry + stroke intersects with a specified clipping rectangle</summary>
 public static bool testApproximateBounds(this iPathGeometry pathGeometry, ref Matrix3x2 transform, ref Rect clipRect, float strokeWidth = 0)
 {
     unsafe
     {
         fixed(Rect *pointer = &clipRect)
         return(pathGeometry.ioTestApproximateBounds(ref transform, strokeWidth, (IntPtr)pointer));
     }
 }
Пример #2
0
 /// <summary>True if the transformed approximate bounds of the geometry + stroke intersects with a default clipping rectangle [ -1, -1, +1, +1 ]</summary>
 public static bool testApproximateBounds(this iPathGeometry pathGeometry, ref Matrix3x2 transform, float strokeWidth = 0)
 {
     return(pathGeometry.ioTestApproximateBounds(ref transform, strokeWidth, IntPtr.Zero));
 }