android.graphics
Class Bitmap
java.lang.Object
android.graphics.Bitmap
- All Implemented Interfaces:
- Parcelable
public final class Bitmap
- extends Object
- implements Parcelable
|
Method Summary |
void |
buildMipMap(boolean flag)
|
boolean |
compress(Bitmap.CompressFormat format,
int quality,
OutputStream stream)
|
Bitmap |
copy(Bitmap.Config config,
boolean isMutable)
|
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 width,
int height,
Bitmap.Config config)
|
static Bitmap |
createBitmap(int width,
int height,
boolean hasAlpha)
|
void |
eraseColor(int c)
|
Bitmap |
extractAlpha()
|
Bitmap |
extractAlpha(Paint paint,
int[] offsetXY)
|
protected void |
finalize()
|
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 |
getWidth()
|
boolean |
hasAlpha()
|
boolean |
hasMipMap()
|
int |
height()
|
boolean |
isMutable()
|
void |
removeMipMap()
|
void |
setPixel(int x,
int y,
int color)
|
void |
setPixels(int[] pixels,
int offset,
int stride,
int x,
int y,
int width,
int height)
|
int |
width()
|
void |
writeToParcel(Parcel p)
|
CREATOR
public static final Parcelable.Creator CREATOR
Bitmap
public Bitmap()
createBitmap
public static Bitmap createBitmap(int width,
int height,
boolean hasAlpha)
width
public int width()
height
public int height()
copy
public Bitmap copy(Bitmap.Config config,
boolean isMutable)
createBitmap
public static Bitmap createBitmap(Bitmap src)
createBitmap
public static Bitmap createBitmap(Bitmap source,
int x,
int y,
int width,
int height)
createBitmap
public static Bitmap createBitmap(Bitmap source,
int x,
int y,
int width,
int height,
Matrix m,
boolean filter)
createBitmap
public static Bitmap createBitmap(int width,
int height,
Bitmap.Config config)
createBitmap
public static Bitmap createBitmap(int[] colors,
int width,
int height,
Bitmap.Config config)
getNinePatchChunk
public byte[] getNinePatchChunk()
compress
public boolean compress(Bitmap.CompressFormat format,
int quality,
OutputStream stream)
isMutable
public final boolean isMutable()
getWidth
public final int getWidth()
getHeight
public final int getHeight()
hasAlpha
public final boolean hasAlpha()
eraseColor
public void eraseColor(int c)
getPixel
public int getPixel(int x,
int y)
getPixels
public void getPixels(int[] pixels,
int offset,
int stride,
int x,
int y,
int width,
int height)
setPixel
public void setPixel(int x,
int y,
int color)
setPixels
public void setPixels(int[] pixels,
int offset,
int stride,
int x,
int y,
int width,
int height)
hasMipMap
public boolean hasMipMap()
buildMipMap
public void buildMipMap(boolean flag)
removeMipMap
public void removeMipMap()
writeToParcel
public void writeToParcel(Parcel p)
- Specified by:
writeToParcel in interface Parcelable
extractAlpha
public Bitmap extractAlpha()
extractAlpha
public Bitmap extractAlpha(Paint paint,
int[] offsetXY)
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
Please submit a feedback, bug or feature