MCPcopy Create free account
hub / github.com/HumbleUI/Skija / drawPatch

Method drawPatch

shared/java/Canvas.java:859–862  ·  view source on GitHub ↗

Draws a Coons patch: the interpolation of four cubics with shared corners, associating a color, and optionally a texture SkPoint, with each corner. Coons patch uses clip and Matrix, paint Shader, ColorFilter, alpha, ImageFilter, and BlendMode. If Shader is provided it is treated as Coons

(@NotNull Point[] cubics, @NotNull int[] colors, @NotNull Paint paint)

Source from the content-addressed store, hash-verified

857 * @see <a href="https://fiddle.skia.org/c/4cf70f8d194867d053d7e177e5088445">https://fiddle.skia.org/c/4cf70f8d194867d053d7e177e5088445</a>
858 */
859 @NotNull @Contract("_, _, _ -> this")
860 public Canvas drawPatch(@NotNull Point[] cubics, @NotNull int[] colors, @NotNull Paint paint) {
861 return drawPatch(cubics, colors, null, paint);
862 }
863
864 /**
865 * <p>Draws a Coons patch: the interpolation of four cubics with shared corners,

Calls 5

onNativeCallMethod · 0.95
_nDrawPatchMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95
flattenArrayMethod · 0.80

Tested by

no test coverage detected