Class is used for getting bitmaps (png, jpg, svg) from byte array. More...
Inherits Finalizable.
Public Member Functions | |
| ImageWrapper | decodeRegion (Rectangle rect, double sampleSize) |
| Method is used to decode rectangle region in the image specified by rect. | |
Static Public Member Functions | |
| static BitmapRegionDecoder | newInstance (Uint8List data) |
| Method is used to create instance of BitmapRegionDecoder. | |
| static BitmapRegionDecoder | newInstanceFromImage (Image data) |
| Creates decoder from Image without copying raw bytes again. | |
Public Attributes | |
| int get | width |
| Width of the source image in pixels (after header parse / decode metadata). | |
| int get | height |
| Height of the source image in pixels (after header parse / decode metadata). | |
Class is used for getting bitmaps (png, jpg, svg) from byte array.
Definition at line 21 of file bitmap_region_decoder.dart.
| ImageWrapper BitmapRegionDecoder.decodeRegion | ( | Rectangle | rect, |
| double | sampleSize ) |
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. |
Dart code snippet:
|
static |
Method is used to create instance of BitmapRegionDecoder.
| data | raw image data (could be raw svg string) |
Dart code snippet:
|
static |
Creates decoder from Image without copying raw bytes again.
| data | image instance (e.g. from SDK pipeline); must remain valid while decoder is used |
Dart code snippet:
| int get BitmapRegionDecoder.height |
Height of the source image in pixels (after header parse / decode metadata).
Dart code snippet:
Definition at line 87 of file bitmap_region_decoder.dart.
| int get BitmapRegionDecoder.width |
Width of the source image in pixels (after header parse / decode metadata).
Dart code snippet:
Definition at line 76 of file bitmap_region_decoder.dart.