Lines Matching refs:Bitmap

31 import android.graphics.Bitmap.Config;
49 * Delegate implementing the native methods of android.graphics.Bitmap
51 * Through the layoutlib_create tool, the original native methods of Bitmap have been replaced
56 * it and the original Bitmap class.
87 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object.
94 public static Bitmap_Delegate getDelegate(@Nullable Bitmap bitmap) {
100 * Creates and returns a {@link Bitmap} initialized with the given file content.
106 * @see Bitmap#isMutable()
107 * @see Bitmap#getDensity()
109 public static Bitmap createBitmap(File input, boolean isMutable, Density density)
115 * Creates and returns a {@link Bitmap} initialized with the given file content.
120 * @see Bitmap#isPremultiplied()
121 * @see Bitmap#isMutable()
122 * @see Bitmap#getDensity()
124 private static Bitmap createBitmap(File input, Set<BitmapCreateFlags> createFlags,
148 * Creates and returns a {@link Bitmap} initialized with the given stream content.
154 * @see Bitmap#isMutable()
155 * @see Bitmap#getDensity()
157 public static Bitmap createBitmap(InputStream input, boolean isMutable, Density density)
163 * Creates and returns a {@link Bitmap} initialized with the given stream content.
168 * @see Bitmap#isPremultiplied()
169 * @see Bitmap#isMutable()
170 * @see Bitmap#getDensity()
172 public static Bitmap createBitmap(InputStream input, Set<BitmapCreateFlags> createFlags,
181 * Creates and returns a {@link Bitmap} initialized with the given {@link BufferedImage}
187 * @see Bitmap#isMutable()
188 * @see Bitmap#getDensity()
190 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) {
195 * Creates and returns a {@link Bitmap} initialized with the given {@link BufferedImage}
200 * @see Bitmap#isPremultiplied()
201 * @see Bitmap#isMutable()
202 * @see Bitmap#getDensity()
204 public static Bitmap createBitmap(BufferedImage image, Set<BitmapCreateFlags> createFlags,
217 * Returns the {@link BufferedImage} used by the delegate of the given {@link Bitmap}.
242 * @see Bitmap#getGenerationId()
251 /*package*/ static Bitmap nativeCreate(int[] colors, int offset, int stride, int width,
266 Bitmap.getDefaultDensity());
270 /*package*/ static Bitmap nativeCopy(long srcBitmap, int nativeConfig, boolean isMutable) {
295 Bitmap.getDefaultDensity());
299 /*package*/ static Bitmap nativeCopyAshmem(long nativeSrcBitmap) {
306 /*package*/ static Bitmap nativeCopyAshmemConfig(long nativeSrcBitmap, int nativeConfig) {
332 "Bitmap.reconfigure() is not supported", null /*data*/);
339 "Bitmap.compress() is not supported", null /*data*/);
449 "Bitmap.copyPixelsToBuffer is not supported.", null, null /*data*/);
456 "Bitmap.copyPixelsFromBuffer is not supported.", null, null /*data*/);
470 /*package*/ static Bitmap nativeCreateFromParcel(Parcel p) {
471 // This is only called by Bitmap.CREATOR (Parcelable.Creator<Bitmap>), which is only
491 /*package*/ static Bitmap nativeExtractAlpha(long nativeBitmap, long nativePaint,
503 "MaskFilter not supported in Bitmap.extractAlpha",
510 // create the delegate. The actual Bitmap config is only an alpha channel
607 // Hack: This is called by Bitmap.refSkPixelRef() and LayoutLib uses that method to get
608 // the native pointer from a Bitmap. So, we return nativeBitmap here.
619 private static Bitmap createBitmap(Bitmap_Delegate delegate,
629 // and create/return a new Bitmap with it
630 return new Bitmap(nativeInt, null /* buffer */, width, height, density, isMutable,