Lines Matching refs:colors

38  * Path, text, Bitmap), and a paint (to describe the colors and styles for the
1425 * Treat the specified array of colors as a bitmap, and draw it. This gives
1428 * which can be more efficient if the colors are changing often.
1430 * @param colors Array of colors representing the pixels of the bitmap
1431 * @param offset Offset into the array of colors for the first pixel
1432 * @param stride The number of colors in the array between rows (must be
1438 * @param hasAlpha True if the alpha channel of the colors contains valid
1449 public void drawBitmap(@NonNull int[] colors, int offset, int stride, float x, float y,
1462 int length = colors.length;
1472 native_drawBitmap(mNativeCanvasWrapper, colors, offset, stride, x, y, width, height, hasAlpha,
1477 * Legacy version of drawBitmap(int[] colors, ...) that took ints for x,y
1485 public void drawBitmap(@NonNull int[] colors, int offset, int stride, int x, int y,
1488 drawBitmap(colors, offset, stride, (float)x, (float)y, width, height,
1531 * @param colors May be null. Specifies a color at each vertex, which is
1533 * multiplied by the corresponding bitmap colors. If not null,
1540 @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset,
1551 if (colors != null) {
1553 checkRange(colors.length, colorOffset, count);
1556 verts, vertOffset, colors, colorOffset,
1582 * both texs and colors arrays are present, then they behave as before, but
1584 * colors from the shader and the color-gradient together. The indices array
1590 * corresponding texs and colors arrays if non-null). Each logical
1597 * @param colors May be null. If not null, specifies a color for each
1599 * @param colorOffset Number of values in colors to skip before drawing.
1601 * vertex (texs, colors) array.
1606 int vertOffset, @Nullable float[] texs, int texOffset, @Nullable int[] colors,
1616 if (colors != null) {
1617 checkRange(colors.length, colorOffset, vertexCount / 2);
1623 vertOffset, texs, texOffset, colors, colorOffset,
2077 private static native void native_drawBitmap(long nativeCanvas, int[] colors,
2090 int[] colors, int colorOffset,
2094 int[] colors, int colorOffset, short[] indices,