Class is used for getting bitmaps (png, jpg, svg) from byte array. More...
Inheritance diagram for com.navigine.idl.java.BitmapRegionDecoder: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). | |
| abstract boolean | isValid () |
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 12 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:
Reimplemented in com.navigine.idl.java.internal.BitmapRegionDecoderBinding.
|
abstract |
Height of the source image in pixels (after header parse / decode metadata).
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.BitmapRegionDecoderBinding.
|
abstract |
Width of the source image in pixels (after header parse / decode metadata).
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.BitmapRegionDecoderBinding.
|
abstract |
Tells if this BitmapRegionDecoder is valid or not. Any other method (except for this one) called on an invalid BitmapRegionDecoder will throw java.lang.RuntimeException.
Reimplemented in com.navigine.idl.java.internal.BitmapRegionDecoderBinding.
|
inlinestatic |
Method is used to create instance of BitmapRegionDecoder.
| data | raw image data (could be raw svg string) |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.BitmapRegionDecoderBinding.
Definition at line 83 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:
Reimplemented in com.navigine.idl.java.internal.BitmapRegionDecoderBinding.
Definition at line 103 of file BitmapRegionDecoder.java.