Android.Graphics.Canvas.DrawBitmapMesh Method
Draw the bitmap through the mesh, where mesh vertices are evenly distributed across the bitmap.

Syntax

[Android.Runtime.Register("drawBitmapMesh", "(Landroid/graphics/Bitmap;II[FI[IILandroid/graphics/Paint;)V", "GetDrawBitmapMesh_Landroid_graphics_Bitmap_IIarrayFIarrayIILandroid_graphics_Paint_Handler")]
public virtual void DrawBitmapMesh (Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint)

Parameters

bitmap
The bitmap to draw using the mesh
meshWidth
The number of columns in the mesh. Nothing is drawn if this is 0
meshHeight
The number of rows in the mesh. Nothing is drawn if this is 0
verts
Array of x,y pairs, specifying where the mesh should be drawn. There must be at least (meshWidth+1) * (meshHeight+1) * 2 + vertOffset values in the array
vertOffset
Number of verts elements to skip before drawing
colors
May be null. Specifies a color at each vertex, which is interpolated across the cell, and whose values are multiplied by the corresponding bitmap colors. If not null, there must be at least (meshWidth+1) * (meshHeight+1) + colorOffset values in the array.
colorOffset
Number of color elements to skip before drawing
paint
May be null. The paint used to draw the bitmap

Remarks

Draw the bitmap through the mesh, where mesh vertices are evenly distributed across the bitmap. There are meshWidth+1 vertices across, and meshHeight+1 vertices down. The verts array is accessed in row-major order, so that the first meshWidth+1 vertices are distributed across the top of the bitmap from left to right. A more general version of this method is drawVertices().

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1