public class BitmapTexture extends UploadedTexture
Modifier and Type | Field and Description |
---|---|
protected Bitmap |
mContentBitmap |
mBitmap
mCanvasRef, mHeight, mId, mState, mTextureHeight, mTextureWidth, mWidth, STATE_ERROR, STATE_LOADED, STATE_UNLOADED, UNSPECIFIED
Constructor and Description |
---|
BitmapTexture(Bitmap bitmap) |
BitmapTexture(Bitmap bitmap,
boolean hasBorder) |
Modifier and Type | Method and Description |
---|---|
Bitmap |
getBitmap() |
protected void |
onFreeBitmap(Bitmap bitmap) |
protected Bitmap |
onGetBitmap() |
getHeight, getTarget, getWidth, invalidateContent, isContentValid, isOpaque, isUploading, onBind, recycle, resetUploadLimit, setIsUploading, setOpaque, setThrottled, updateContent, uploadLimitReached
draw, draw, finalize, getId, getTextureHeight, getTextureWidth, hasBorder, inFinalizer, invalidateAllTextures, isFlippedVertically, isLoaded, setAssociatedCanvas, setBorder, setSize, yield, yieldAllTextures
protected Bitmap mContentBitmap
public BitmapTexture(Bitmap bitmap)
public BitmapTexture(Bitmap bitmap, boolean hasBorder)
protected void onFreeBitmap(Bitmap bitmap)
onFreeBitmap
in class UploadedTexture
protected Bitmap onGetBitmap()
onGetBitmap
in class UploadedTexture
public Bitmap getBitmap()