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)
47 // Estimated size of the Bitmap native allocation, not including
52 * Backing buffer for the Bitmap.
62 * Represents whether the Bitmap's content is requested to be pre-multiplied.
64 * isPremultiplied() may never return true for a 565 Bitmap or a bitmap
111 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density,
136 Bitmap.class.getClassLoader(), nativeGetNativeFinalizer(), nativeSize);
205 * Bitmap pixel data is not re-initialized for the new configuration.</p>
209 * or lesser size. If the Bitmap's allocation isn't large enough to support
229 * <p>In order to safely ensure that a Bitmap is no longer in use by the
231 * invalidate()'ing any view that had previously drawn the Bitmap in the last
236 * final Bitmap myBitmap = ...;
345 // Bitmap itself is collected.
590 public Bitmap copy(Config config, boolean isMutable) {
592 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable);
606 public Bitmap createAshmemBitmap() {
608 Bitmap b = nativeCopyAshmem(mNativePtr);
622 public Bitmap createAshmemBitmap(Config config) {
624 Bitmap b = nativeCopyAshmemConfig(mNativePtr, config.nativeInt);
645 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight,
648 synchronized (Bitmap.class) {
663 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter);
665 synchronized (Bitmap.class) {
680 public static Bitmap createBitmap(Bitmap src) {
700 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) {
728 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height,
749 Bitmap bitmap;
822 public static Bitmap createBitmap(int width, int height, Config config) {
837 public static Bitmap createBitmap(DisplayMetrics display, int width,
855 private static Bitmap createBitmap(int width, int height, Config config, boolean hasAlpha) {
874 private static Bitmap createBitmap(DisplayMetrics display, int width, int height,
879 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true);
911 public static Bitmap createBitmap(int colors[], int offset, int stride,
936 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
952 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
975 public static Bitmap createBitmap(int colors[], int width, int height, Config config) {
996 public static Bitmap createBitmap(DisplayMetrics display, int colors[],
1074 Trace.traceBegin(Trace.TRACE_TAG_RESOURCES, "Bitmap.compress");
1096 * {@link Bitmap.Config#RGB_565}.</p>
1099 * {@link Bitmap.Config#ALPHA_8}.</p>
1112 * @see Bitmap#setPremultiplied(boolean)
1127 * a Bitmap (through {@link #setPixel}, {@link #setPixels}, or {@link
1135 * Bitmap whose colors are not pre-multiplied may result in a RuntimeException,
1139 * @see Bitmap#isPremultiplied()
1267 * #setConfig(Bitmap.Config)}, and {@link BitmapFactory.Options#inBitmap
1271 * <p>This value will not change over the lifetime of a Bitmap.</p>
1555 public static final Parcelable.Creator<Bitmap> CREATOR
1556 = new Parcelable.Creator<Bitmap>() {
1563 public Bitmap createFromParcel(Parcel p) {
1564 Bitmap bm = nativeCreateFromParcel(p);
1566 throw new RuntimeException("Failed to unparcel Bitmap");
1570 public Bitmap[] newArray(int size) {
1571 return new Bitmap[size];
1602 public Bitmap extractAlpha() {
1632 public Bitmap extractAlpha(Paint paint, int[] offsetXY) {
1635 Bitmap bm = nativeExtractAlpha(mNativePtr, nativePaint, offsetXY);
1637 throw new RuntimeException("Failed to extractAlpha on Bitmap");
1648 public boolean sameAs(Bitmap other) {
1688 private static native Bitmap nativeCreate(int[] colors, int offset,
1691 private static native Bitmap nativeCopy(long nativeSrcBitmap, int nativeConfig,
1693 private static native Bitmap nativeCopyAshmem(long nativeSrcBitmap);
1694 private static native Bitmap nativeCopyAshmemConfig(long nativeSrcBitmap, int nativeConfig);
1722 private static native Bitmap nativeCreateFromParcel(Parcel p);
1729 private static native Bitmap nativeExtractAlpha(long nativeBitmap,