public class BitmapLayer
extends android.graphics.Canvas
Modifier and Type | Class and Description |
---|---|
static class |
BitmapLayer.ConcurrentLayer |
Constructor and Description |
---|
BitmapLayer(float width,
float height,
android.graphics.Bitmap.Config config) |
BitmapLayer(int width,
int height,
android.graphics.Bitmap.Config config) |
Modifier and Type | Method and Description |
---|---|
BitmapLayer |
clear() |
android.graphics.Bitmap |
getBitmap() |
boolean |
matchSize(int width,
int height) |
void |
recycle() |
void |
setBitmap(android.graphics.Bitmap bitmap) |
void |
startBuffer() |
void |
stopBuffer() |
clipOutPath, clipOutRect, clipOutRect, clipOutRect, clipOutRect, clipPath, clipPath, clipRect, clipRect, clipRect, clipRect, clipRect, clipRect, clipRect, concat, drawArc, drawArc, drawARGB, drawBitmap, drawBitmap, drawBitmap, drawBitmap, drawBitmap, drawBitmap, drawBitmapMesh, drawCircle, drawColor, drawColor, drawLine, drawLines, drawLines, drawOval, drawOval, drawPaint, drawPath, drawPicture, drawPicture, drawPicture, drawPoint, drawPoints, drawPoints, drawPosText, drawPosText, drawRect, drawRect, drawRect, drawRGB, drawRoundRect, drawRoundRect, drawText, drawText, drawText, drawText, drawTextOnPath, drawTextOnPath, drawTextRun, drawTextRun, drawVertices, getClipBounds, getClipBounds, getDensity, getDrawFilter, getHeight, getMatrix, getMatrix, getMaximumBitmapHeight, getMaximumBitmapWidth, getSaveCount, getWidth, isHardwareAccelerated, isOpaque, quickReject, quickReject, quickReject, restore, restoreToCount, rotate, rotate, save, saveLayer, saveLayer, saveLayer, saveLayer, saveLayerAlpha, saveLayerAlpha, saveLayerAlpha, saveLayerAlpha, scale, scale, setDensity, setDrawFilter, setMatrix, skew, translate
@WorkerThread public BitmapLayer(int width, int height, android.graphics.Bitmap.Config config)
public BitmapLayer(float width, float height, android.graphics.Bitmap.Config config)
public void recycle()
public void startBuffer()
public void setBitmap(@Nullable android.graphics.Bitmap bitmap)
setBitmap
in class android.graphics.Canvas
public void stopBuffer()
public boolean matchSize(int width, int height)
public android.graphics.Bitmap getBitmap()
public BitmapLayer clear()