public class PixelMapDrawInfo extends Object
Canvas#drawDeformedPixelMap(PixelMapHolder, PixelMapDrawInfo, Paint)
calls. These values specify PixelMap's draw width, height, draw points, etc.| 构造器 | 说明 |
|---|---|
PixelMapDrawInfo(int[] divideInfo,
float[] verticesParam,
int vOffset,
int[] colorsParam,
int cOffset) |
Parameterized constructor used to create an
PixelMapDrawInfo instance. |
public PixelMapDrawInfo(int[] divideInfo,
float[] verticesParam,
int vOffset,
int[] colorsParam,
int cOffset)
PixelMapDrawInfo instance.divideInfo - Indicates the draw size, the first number is width, the second is height. Notice that
the array length must be equal to 2.verticesParam - Indicates where the pixelmap should be drawn. Array members ara in pair (x, y), so the array
length must be equal or greater than (divideInfo[0] + 1) * (divideInfo[1] + 1) *2 + vOffset.vOffset - Indicates the number of vertex elements to skip.colorsParam - Indicates the pixelmap's colors at each point. It can be null. if not null, the length must
be equal or greater than (divideInfo[0] + 1) * (divideInfo[1] + 1) + cOffset.cOffset - Indicates number of colors elements to skip.