Lines Matching refs:colors

388      * well as the ability to display transparent/translucent colors.
847 * pixel value set to the corresponding value in the colors array. Its
850 * @param colors Array of {@link Color} used to initialize the pixels.
852 * array of colors.
853 * @param stride Number of colors in the array between rows (must be >=
859 * bytes in the colors[] will be ignored (assumed to be FF)
863 public static Bitmap createBitmap(int colors[], int offset, int stride,
865 return createBitmap(null, colors, offset, stride, width, height, config);
870 * pixel value set to the corresponding value in the colors array. Its
875 * @param colors Array of {@link Color} used to initialize the pixels.
877 * array of colors.
878 * @param stride Number of colors in the array between rows (must be >=
884 * bytes in the colors[] will be ignored (assumed to be FF)
888 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
896 int length = colors.length;
904 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
914 * pixel value set to the corresponding value in the colors array. Its
917 * @param colors Array of {@link Color} used to initialize the pixels.
923 * bytes in the colors[] will be ignored (assumed to be FF)
927 public static Bitmap createBitmap(int colors[], int width, int height, Config config) {
928 return createBitmap(null, colors, 0, width, width, height, config);
933 * pixel value set to the corresponding value in the colors array. Its
938 * @param colors Array of {@link Color} used to initialize the pixels.
944 * bytes in the colors[] will be ignored (assumed to be FF)
948 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
950 return createBitmap(display, colors, 0, width, width, height, config);
1087 * Bitmap whose colors are not pre-multiplied may result in a RuntimeException,
1361 * The returned colors are non-premultiplied ARGB values.
1363 * @param pixels The array to receive the bitmap's colors
1471 * <p>Replace pixels in the bitmap with the colors in the array. Each element
1475 * @param pixels The colors to write to the bitmap
1477 * @param stride The number of colors in pixels[] to skip between rows.
1484 * @param width The number of colors to copy from pixels[] per row
1675 private static native Bitmap nativeCreate(int[] colors, int offset,
1700 private static native void nativeSetPixels(long nativeBitmap, int[] colors,