Lines Matching defs:Bitmap

29 public final class Bitmap implements Parcelable {
33 * @see Bitmap#getDensity()
34 * @see Bitmap#setDensity(int)
47 * Backing buffer for the Bitmap.
97 Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk,
110 Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk,
208 // Bitmap itself is collected.
440 public Bitmap copy(Config config, boolean isMutable) {
442 Bitmap b = nativeCopy(mNativeBitmap, config.nativeInt, isMutable);
461 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight,
464 synchronized (Bitmap.class) {
479 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter);
481 synchronized (Bitmap.class) {
496 public static Bitmap createBitmap(Bitmap src) {
513 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) {
540 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height,
561 Bitmap bitmap;
632 public static Bitmap createBitmap(int width, int height, Config config) {
647 public static Bitmap createBitmap(DisplayMetrics display, int width,
665 private static Bitmap createBitmap(int width, int height, Config config, boolean hasAlpha) {
684 private static Bitmap createBitmap(DisplayMetrics display, int width, int height,
689 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true);
723 public static Bitmap createBitmap(int colors[], int offset, int stride,
748 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
764 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
787 public static Bitmap createBitmap(int colors[], int width, int height, Config config) {
808 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
894 * {@link Bitmap.Config#RGB_565}.</p>
1262 public static final Parcelable.Creator<Bitmap> CREATOR
1263 = new Parcelable.Creator<Bitmap>() {
1270 public Bitmap createFromParcel(Parcel p) {
1271 Bitmap bm = nativeCreateFromParcel(p);
1273 throw new RuntimeException("Failed to unparcel Bitmap");
1277 public Bitmap[] newArray(int size) {
1278 return new Bitmap[size];
1308 public Bitmap extractAlpha() {
1337 public Bitmap extractAlpha(Paint paint, int[] offsetXY) {
1340 Bitmap bm = nativeExtractAlpha(mNativeBitmap, nativePaint, offsetXY);
1342 throw new RuntimeException("Failed to extractAlpha on Bitmap");
1353 public boolean sameAs(Bitmap other) {
1393 private static native Bitmap nativeCreate(int[] colors, int offset,
1396 private static native Bitmap nativeCopy(int srcBitmap, int nativeConfig,
1425 private static native Bitmap nativeCreateFromParcel(Parcel p);
1432 private static native Bitmap nativeExtractAlpha(int nativeBitmap,