Сlass is used for getting bitmaps (png, jpg, svg) from byte array. More...
Public Member Functions | |
| abstract android.graphics.Bitmap | decodeRegion (Rectangle rect, float sampleSize) |
| Method is used to decode rectangle region in the image specified by rect. | |
Static Public Member Functions | |
| static BitmapRegionDecoder | newInstance (byte[] data) |
| Method is used to create instance of BitmapRegionDecoder. | |
Сlass is used for getting bitmaps (png, jpg, svg) from byte array.
Definition at line 14 of file BitmapRegionDecoder.java.
|
abstract |
Method is used to decode rectangle region in the image specified by rect.
| rect | area to render Rectangle |
| sampleSize | if set to a value > 1, requests the decoder to subsample the original image, returning a smaller image to save memory. |
Java code snippet:
Kotlin code snippet:
|
inlinestatic |
Method is used to create instance of BitmapRegionDecoder.
| data | raw image data (could be raw svg string) |
Java code snippet:
Kotlin code snippet:
Definition at line 48 of file BitmapRegionDecoder.java.