public final class BitmapUtil
extends java.lang.Object
Bitmap
classConstructor and Description |
---|
BitmapUtil() |
Modifier and Type | Method and Description |
---|---|
static android.graphics.Bitmap |
createFrom(android.graphics.Bitmap bitmap,
android.graphics.RectF bitmapRegion)
Creates a new bitmap from the part of specified
bitmap |
static android.graphics.Bitmap |
createFrom(BrushStyle brushStyle,
int width,
int height)
Creates bitmap from
BrushStyle instance |
public static android.graphics.Bitmap createFrom(android.graphics.Bitmap bitmap, android.graphics.RectF bitmapRegion)
bitmap
bitmap
- The source bitmapbitmapRegion
- The relative bounds to create new bitmap frompublic static android.graphics.Bitmap createFrom(BrushStyle brushStyle, int width, int height)
BrushStyle
instancebrushStyle
- The BrushStyle
to usewidth
- The width of bitmapheight
- The height of bitmap