Lines Matching defs:colors

389      * well as the ability to display transparent/translucent colors.
833 * pixel value set to the corresponding value in the colors array. Its
836 * @param colors Array of {@link Color} used to initialize the pixels.
838 * array of colors.
839 * @param stride Number of colors in the array between rows (must be >=
845 * bytes in the colors[] will be ignored (assumed to be FF)
849 public static Bitmap createBitmap(int colors[], int offset, int stride,
851 return createBitmap(null, colors, offset, stride, width, height, config);
856 * pixel value set to the corresponding value in the colors array. Its
861 * @param colors Array of {@link Color} used to initialize the pixels.
863 * array of colors.
864 * @param stride Number of colors in the array between rows (must be >=
870 * bytes in the colors[] will be ignored (assumed to be FF)
874 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
882 int length = colors.length;
890 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
900 * pixel value set to the corresponding value in the colors array. Its
903 * @param colors Array of {@link Color} used to initialize the pixels.
909 * bytes in the colors[] will be ignored (assumed to be FF)
913 public static Bitmap createBitmap(int colors[], int width, int height, Config config) {
914 return createBitmap(null, colors, 0, width, width, height, config);
919 * pixel value set to the corresponding value in the colors array. Its
924 * @param colors Array of {@link Color} used to initialize the pixels.
930 * bytes in the colors[] will be ignored (assumed to be FF)
934 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
936 return createBitmap(display, colors, 0, width, width, height, config);
1070 * Bitmap whose colors are not pre-multiplied may result in a RuntimeException,
1322 * The returned colors are non-premultiplied ARGB values.
1324 * @param pixels The array to receive the bitmap's colors
1432 * <p>Replace pixels in the bitmap with the colors in the array. Each element
1436 * @param pixels The colors to write to the bitmap
1438 * @param stride The number of colors in pixels[] to skip between rows.
1445 * @param width The number of colors to copy from pixels[] per row
1611 private static native Bitmap nativeCreate(int[] colors, int offset,
1635 private static native void nativeSetPixels(long nativeBitmap, int[] colors,