ImageProcess class

compressing cropping process is done here

Constructors

ImageProcess(Uint8List imageBytes, {required int encodingQuality, required OutputImageFormat outputImageFormat, String? workerPath})

Properties

encodingQuality int
JPEG encoding quality
final
hashCode int
The hash code for this object.
no setterinherited
imageBytes Uint8List
image bytes which will be of user's picked image.
getter/setter pair
outputImageFormat OutputImageFormat
Output format of image
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compress(dynamic onBytesLoaded(), dynamic onLibraryImageLoaded(Image)) → void
compressed image is shown for user's reference
crop(int imageCropX, int imageCropY, int imageCropWidth, int imageCropHeight, dynamic onImageLoaded(Image, Uint8List)) → void
Image cropping will be done by crop method
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getCompressedImage(Uint8List _imageData) → Image