IImage extension

Some Convenience Handling of Fultter Images.

on

Properties

size Size
Image size.
no setter

Methods

changeSize({int? imgW, int? imgH, bool isDispose = false}) Future<Image>
Resize an image asynchronously.
changeSizeSync({int? imgW, int? imgH, bool isDispose = false}) Image
Change image size.
realContentImage({Color ignoreColor = const Color(0xffffffff), bool includeIgnoreColor = false, double tolerance = 1, bool isDispose = false}) Future<Image>
Get the real content in the image.
realContentSize({Color ignoreColor = const Color(0xffffffff), double tolerance = 1}) Future<Rect>
Get the real content size of the image.
rect({Offset offset = Offset.zero}) Rect
Image rectangle with coordinates at (0,0) point.
removalColor({Color color = const Color(0xffffffff), double tolerance = 1}) Future<Image?>
Image decolorization.
scale({double scale = 1, bool isDispose = false}) Future<Image>
Image scaling.
scaleSync({double scale = 1, bool isDispose = false}) Image
Image scaling.
uint32List({ImageByteFormat format = ImageByteFormat.rawRgba}) Future<Uint32List?>
Get the Uint8List data of the image.
uint8List({ImageByteFormat format = ImageByteFormat.rawRgba}) Future<Uint8List?>
Get the Uint8List data of the image.