Lines Matching refs:colors

30  * Path, text, Bitmap), and a paint (to describe the colors and styles for the
1133 * Treat the specified array of colors as a bitmap, and draw it. This gives
1136 * which can be more efficient if the colors are changing often.
1138 * @param colors Array of colors representing the pixels of the bitmap
1139 * @param offset Offset into the array of colors for the first pixel
1140 * @param stride The number of colors in the array between rows (must be
1146 * @param hasAlpha True if the alpha channel of the colors contains valid
1151 public void drawBitmap(int[] colors, int offset, int stride, float x, float y,
1164 int length = colors.length;
1174 native_drawBitmap(mNativeCanvas, colors, offset, stride, x, y, width, height, hasAlpha,
1178 /** Legacy version of drawBitmap(int[] colors, ...) that took ints for x,y
1180 public void drawBitmap(int[] colors, int offset, int stride, int x, int y,
1183 drawBitmap(colors, offset, stride, (float)x, (float)y, width, height,
1226 * @param colors May be null. Specifies a color at each vertex, which is
1228 * multiplied by the corresponding bitmap colors. If not null,
1235 float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) {
1245 if (colors != null) {
1247 checkRange(colors.length, colorOffset, count);
1250 verts, vertOffset, colors, colorOffset,
1276 * both texs and colors arrays are present, then they behave as before, but
1278 * colors from the shader and the color-gradient together. The indices array
1284 * corresponding texs and colors arrays if non-null). Each logical
1291 * @param colors May be null. If not null, specifies a color for each
1293 * @param colorOffset Number of values in colors to skip before drawing.
1295 * vertex (texs, colors) array.
1300 float[] texs, int texOffset, int[] colors, int colorOffset,
1306 if (colors != null) {
1307 checkRange(colors.length, colorOffset, vertexCount / 2);
1313 vertOffset, texs, texOffset, colors, colorOffset,
1713 private static native void native_drawBitmap(int nativeCanvas, int[] colors,
1723 int[] colors, int colorOffset, int nPaint);
1726 int[] colors, int colorOffset, short[] indices,