CropExportConfiguration class

Configuration options for exporting the cropped image result.

Annotations

Constructors

CropExportConfiguration({CropImageFormat format = CropImageFormat.png, int quality = 90, Size? targetSize, bool maintainTransparency = true, Color backgroundColor = const Color(0xFFFFFFFF)})
Creates a CropExportConfiguration.
const

Properties

backgroundColor → Color
Fallback background fill color if the format does not support transparency (e.g. JPEG).
final
format → CropImageFormat
Target encoding format for the exported image.
final
hashCode → int
The hash code for this object.
no setteroverride
maintainTransparency → bool
Whether to maintain alpha channel transparency for circular/oval shapes.
final
quality → int
Compression quality from 1 to 100 (where applicable).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetSize → Size?
Optional target size to resize the cropped image to upon export.
final

Methods

copyWith({CropImageFormat? format, int? quality, Size? targetSize, bool? maintainTransparency, Color? backgroundColor}) → CropExportConfiguration
Creates a copy with modified properties.
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.
override