Lines Matching defs:Bitmap

36 public final class Bitmap implements Parcelable {
37 private static final String TAG = "Bitmap";
42 * @see Bitmap#getDensity()
43 * @see Bitmap#setDensity(int)
48 * Backing buffer for the Bitmap.
59 * Represents whether the Bitmap's content is requested to be pre-multiplied.
61 * isPremultiplied() may never return true for a 565 Bitmap or a bitmap
108 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density,
191 * Bitmap pixel data is not re-initialized for the new configuration.</p>
195 * or lesser size. If the Bitmap's allocation isn't large enough to support
313 // Bitmap itself is collected.
558 public Bitmap copy(Config config, boolean isMutable) {
560 Bitmap b = nativeCopy(mFinalizer.mNativeBitmap, config.nativeInt, isMutable);
574 public Bitmap createAshmemBitmap() {
576 Bitmap b = nativeCopyAshmem(mFinalizer.mNativeBitmap);
597 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight,
600 synchronized (Bitmap.class) {
615 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter);
617 synchronized (Bitmap.class) {
632 public static Bitmap createBitmap(Bitmap src) {
652 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) {
680 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height,
701 Bitmap bitmap;
774 public static Bitmap createBitmap(int width, int height, Config config) {
789 public static Bitmap createBitmap(DisplayMetrics display, int width,
807 private static Bitmap createBitmap(int width, int height, Config config, boolean hasAlpha) {
826 private static Bitmap createBitmap(DisplayMetrics display, int width, int height,
831 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true);
863 public static Bitmap createBitmap(int colors[], int offset, int stride,
888 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
904 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
927 public static Bitmap createBitmap(int colors[], int width, int height, Config config) {
948 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
1026 Trace.traceBegin(Trace.TRACE_TAG_RESOURCES, "Bitmap.compress");
1048 * {@link Bitmap.Config#RGB_565}.</p>
1051 * {@link Bitmap.Config#ALPHA_8}.</p>
1064 * @see Bitmap#setPremultiplied(boolean)
1079 * a Bitmap (through {@link #setPixel}, {@link #setPixels}, or {@link
1087 * Bitmap whose colors are not pre-multiplied may result in a RuntimeException,
1091 * @see Bitmap#isPremultiplied()
1219 * #setConfig(Bitmap.Config)}, and {@link BitmapFactory.Options#inBitmap
1223 * <p>This value will not change over the lifetime of a Bitmap.</p>
1507 public static final Parcelable.Creator<Bitmap> CREATOR
1508 = new Parcelable.Creator<Bitmap>() {
1515 public Bitmap createFromParcel(Parcel p) {
1516 Bitmap bm = nativeCreateFromParcel(p);
1518 throw new RuntimeException("Failed to unparcel Bitmap");
1522 public Bitmap[] newArray(int size) {
1523 return new Bitmap[size];
1554 public Bitmap extractAlpha() {
1584 public Bitmap extractAlpha(Paint paint, int[] offsetXY) {
1587 Bitmap bm = nativeExtractAlpha(mFinalizer.mNativeBitmap, nativePaint, offsetXY);
1589 throw new RuntimeException("Failed to extractAlpha on Bitmap");
1600 public boolean sameAs(Bitmap other) {
1641 // Native memory allocated for the duration of the Bitmap,
1675 private static native Bitmap nativeCreate(int[] colors, int offset,
1678 private static native Bitmap nativeCopy(long nativeSrcBitmap, int nativeConfig,
1680 private static native Bitmap nativeCopyAshmem(long nativeSrcBitmap);
1708 private static native Bitmap nativeCreateFromParcel(Parcel p);
1715 private static native Bitmap nativeExtractAlpha(long nativeBitmap,