public interface Bitmap
| Modifier and Type | Method and Description |
|---|---|
void |
eraseColor(int color)
Erase color, clear Bitmap.
|
int |
getHeight()
Gets the height.
|
int[] |
getPixels()
Gets the pixels as ARGB int array.
|
byte[] |
getPngEncodedData() |
int |
getWidth()
Gets the width.
|
boolean |
isValid() |
void |
recycle()
Recycle.
|
void |
scaleTo(int width,
int height) |
void |
uploadToTexture(boolean replace)
Upload Bitmap to currently bound GL texture.
|
int getWidth()
int getHeight()
void recycle()
int[] getPixels()
void eraseColor(int color)
color - the colorvoid uploadToTexture(boolean replace)
replace - true, when glSubImage2D can be used for uploadboolean isValid()
byte[] getPngEncodedData()
void scaleTo(int width,
int height)