Page 1 2
public final boolean isMutable() sourcepublic final boolean isPremultiplied() sourcepublic final void setPremultiplied(boolean premultiplied) sourcepublic byte[] getNinePatchChunk() sourcepublic android.hardware.HardwareBuffer getHardwareBuffer() sourceNo bitmap here has a hardware buffer behind it: the pixels stay in host memory.
public final ColorSpace getColorSpace() sourcepublic void setColorSpace(ColorSpace colorSpace) sourcepublic void recycle() sourcepublic final boolean isRecycled() sourcepublic int getGenerationId() sourcepublic void prepareToDraw() empty body sourcepublic void setWidth(int width) sourcepublic void setHeight(int height) sourcepublic void setConfig(Config config) sourcepublic void reconfigure(int width, int height, Config config) sourcepublic int getPixel(int x, int y) sourcepublic Color getColor(int x, int y) sourcepublic void setPixel(int x, int y, int color) sourcepublic void getPixels(int[] out, int offset, int stride, int x, int y, int width, int height) sourcepublic void setPixels(int[] in, int offset, int stride, int x, int y, int width, int height) sourcepublic void eraseColor(int c) sourcepublic void eraseColor(long color) sourcepublic void copyPixelsToBuffer(Buffer dst) sourceThe pixels as RGBA bytes (the order ARGB_8888 has in memory on Android).
public void copyPixelsFromBuffer(Buffer src) sourcepublic Bitmap copy(Config config, boolean isMutable) sourcepublic Bitmap extractAlpha() sourcepublic boolean sameAs(Bitmap other) sourcepublic boolean compress(CompressFormat format, int quality, java.io.OutputStream stream) sourceThe pixels the app set, encoded as a PNG or a JPEG by the runtime's codec (snx.android.hwui.Image). What a canvas drew stays on the GPU and is not in them. WebP has no encoder here: compress gives false for it.
public int describeContents() sourcepublic void writeToParcel(android.os.Parcel p, int flags) sourcePage 1 2
Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.