public extern static void sk_canvas_draw_image_lattice(sk_canvas_t t, sk_image_t image, ref SKLatticeInternal lattice, ref SKRect dst, sk_paint_t paint);
public extern static void sk_canvas_draw_bitmap_lattice(sk_canvas_t t, sk_bitmap_t bitmap, ref SKLatticeInternal lattice, ref SKRect dst, sk_paint_t paint);
public unsafe void DrawImageLattice (SKImage image, SKLattice lattice, SKRect dst, SKPaint paint = null) { if (image == null) throw new ArgumentNullException (nameof (image)); if (lattice.XDivs == null) throw new ArgumentNullException (nameof (lattice.XDivs)); if (lattice.YDivs == null) throw new ArgumentNullException (nameof (lattice.YDivs)); fixed (int* x = lattice.XDivs) fixed (int* y = lattice.YDivs) fixed (SKLatticeFlags* f = lattice.Flags) { var nativeLattice = new SKLatticeInternal { fBounds = null, fFlags = f, fXCount = lattice.XDivs.Length, fXDivs = x, fYCount = lattice.YDivs.Length, fYDivs = y, }; if (lattice.Bounds != null) { var bounds = lattice.Bounds.Value; nativeLattice.fBounds = &bounds; } SkiaApi.sk_canvas_draw_image_lattice (Handle, image.Handle, ref nativeLattice, ref dst, paint == null ? IntPtr.Zero : paint.Handle); } }