public final class Bitmap extends Object implements Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
Bitmap.CompressFormat |
static class |
Bitmap.Config |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<Bitmap> |
CREATOR |
static int |
DENSITY_NONE |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method and Description |
|---|---|
boolean |
compress(Bitmap.CompressFormat format,
int quality,
OutputStream stream) |
Bitmap |
copy(Bitmap.Config config,
boolean isMutable) |
void |
copyPixelsFromBuffer(Buffer src) |
void |
copyPixelsToBuffer(Buffer dst) |
static Bitmap |
createBitmap(Bitmap src) |
static Bitmap |
createBitmap(Bitmap source,
int x,
int y,
int width,
int height) |
static Bitmap |
createBitmap(Bitmap source,
int x,
int y,
int width,
int height,
Matrix m,
boolean filter) |
static Bitmap |
createBitmap(int[] colors,
int width,
int height,
Bitmap.Config config) |
static Bitmap |
createBitmap(int[] colors,
int offset,
int stride,
int width,
int height,
Bitmap.Config config) |
static Bitmap |
createBitmap(int width,
int height,
Bitmap.Config config) |
static Bitmap |
createScaledBitmap(Bitmap src,
int dstWidth,
int dstHeight,
boolean filter) |
int |
describeContents() |
void |
eraseColor(int c) |
Bitmap |
extractAlpha() |
Bitmap |
extractAlpha(Paint paint,
int[] offsetXY) |
int |
getByteCount() |
Bitmap.Config |
getConfig() |
int |
getDensity() |
int |
getGenerationId() |
int |
getHeight() |
byte[] |
getNinePatchChunk() |
int |
getPixel(int x,
int y) |
void |
getPixels(int[] pixels,
int offset,
int stride,
int x,
int y,
int width,
int height) |
int |
getRowBytes() |
int |
getScaledHeight(Canvas canvas) |
int |
getScaledHeight(DisplayMetrics metrics) |
int |
getScaledHeight(int targetDensity) |
int |
getScaledWidth(Canvas canvas) |
int |
getScaledWidth(DisplayMetrics metrics) |
int |
getScaledWidth(int targetDensity) |
int |
getWidth() |
boolean |
hasAlpha() |
boolean |
isMutable() |
boolean |
isRecycled() |
void |
prepareToDraw() |
void |
recycle() |
boolean |
sameAs(Bitmap other) |
void |
setDensity(int density) |
void |
setHasAlpha(boolean hasAlpha) |
void |
setPixel(int x,
int y,
int color) |
void |
setPixels(int[] pixels,
int offset,
int stride,
int x,
int y,
int width,
int height) |
void |
writeToParcel(Parcel p,
int flags) |
public static final int DENSITY_NONE
public static final Parcelable.Creator<Bitmap> CREATOR
public int getDensity()
public void setDensity(int density)
public void recycle()
public final boolean isRecycled()
public int getGenerationId()
public void copyPixelsToBuffer(Buffer dst)
public void copyPixelsFromBuffer(Buffer src)
public Bitmap copy(Bitmap.Config config, boolean isMutable)
public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, boolean filter)
public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter)
public static Bitmap createBitmap(int width, int height, Bitmap.Config config)
public static Bitmap createBitmap(int[] colors, int offset, int stride, int width, int height, Bitmap.Config config)
public static Bitmap createBitmap(int[] colors, int width, int height, Bitmap.Config config)
public byte[] getNinePatchChunk()
public boolean compress(Bitmap.CompressFormat format, int quality, OutputStream stream)
public final boolean isMutable()
public final int getWidth()
public final int getHeight()
public int getScaledWidth(Canvas canvas)
public int getScaledHeight(Canvas canvas)
public int getScaledWidth(DisplayMetrics metrics)
public int getScaledHeight(DisplayMetrics metrics)
public int getScaledWidth(int targetDensity)
public int getScaledHeight(int targetDensity)
public final int getRowBytes()
public final int getByteCount()
public final Bitmap.Config getConfig()
public final boolean hasAlpha()
public void setHasAlpha(boolean hasAlpha)
public void eraseColor(int c)
public int getPixel(int x,
int y)
public void getPixels(int[] pixels,
int offset,
int stride,
int x,
int y,
int width,
int height)
public void setPixel(int x,
int y,
int color)
public void setPixels(int[] pixels,
int offset,
int stride,
int x,
int y,
int width,
int height)
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel p, int flags)
writeToParcel in interface Parcelablepublic Bitmap extractAlpha()
public boolean sameAs(Bitmap other)
public void prepareToDraw()
Copyright © 2008-2013. All Rights Reserved.