Class 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. | |
| abstract int | getWidth () |
| Width of the source image in pixels (after header parse / decode metadata). | |
| abstract int | getHeight () |
| Height of the source image in pixels (after header parse / decode metadata). | |
Static Public Member Functions | |
| static BitmapRegionDecoder | newInstance (byte[] data) |
| Method is used to create instance of BitmapRegionDecoder. | |
| static BitmapRegionDecoder | newInstanceFromImage (Image data) |
| Creates decoder from Image without copying raw bytes again. | |
Class 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:
|
abstract |
Height of the source image in pixels (after header parse / decode metadata).
Java code snippet:
Kotlin code snippet:
|
abstract |
Width of the source image in pixels (after header parse / decode metadata).
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 78 of file BitmapRegionDecoder.java.
|
inlinestatic |
Creates decoder from Image without copying raw bytes again.
| data | image instance (e.g. from SDK pipeline); must remain valid while decoder is used |
Java code snippet:
Kotlin code snippet:
Definition at line 98 of file BitmapRegionDecoder.java.