ImageConverter class
A utility singleton class that handles conversion of image formats using custom generation configurations and a recording system.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
convertFormat(
{required EditorImage image, required OutputFormat format, ImageGenerationConfigs generationConfigs = const ImageGenerationConfigs()}) → Future< Uint8List?> -
Converts an EditorImage into a different OutputFormat using
the given
generationConfigs
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uiImageToImageBytes(
Image image, {BuildContext? context, ImageGenerationConfigs configs = const ImageGenerationConfigs(outputFormat: OutputFormat.png, maxOutputSize: Size.infinite, processorConfigs: ProcessorConfigs(processorMode: ProcessorMode.minimum))}) → Future< Uint8List?> - Generates a image from the provided ui.Image.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ImageConverter
-
The singleton instance of ImageConverter.
final