Bitmap

Page 1 2

public final boolean isMutable() source
public final boolean isPremultiplied() source
public final void setPremultiplied(boolean premultiplied) source
public byte[] getNinePatchChunk() source
public android.hardware.HardwareBuffer getHardwareBuffer() source

No bitmap here has a hardware buffer behind it: the pixels stay in host memory.

public final ColorSpace getColorSpace() source
public void setColorSpace(ColorSpace colorSpace) source
public void recycle() source
public final boolean isRecycled() source
public int getGenerationId() source
public void prepareToDraw() empty body source
public void setWidth(int width) source
public void setHeight(int height) source
public void setConfig(Config config) source
public void reconfigure(int width, int height, Config config) source
public int getPixel(int x, int y) source
public Color getColor(int x, int y) source
public void setPixel(int x, int y, int color) source
public void getPixels(int[] out, int offset, int stride, int x, int y, int width, int height) source
public void setPixels(int[] in, int offset, int stride, int x, int y, int width, int height) source
public void eraseColor(int c) source
public void eraseColor(long color) source
public void copyPixelsToBuffer(Buffer dst) source

The pixels as RGBA bytes (the order ARGB_8888 has in memory on Android).

public void copyPixelsFromBuffer(Buffer src) source
public Bitmap copy(Config config, boolean isMutable) source
public Bitmap extractAlpha() source
public boolean sameAs(Bitmap other) source
public boolean compress(CompressFormat format, int quality, java.io.OutputStream stream) source

The 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() source
public void writeToParcel(android.os.Parcel p, int flags) source

Page 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.