OutputImageCrop class
Crop settings for OutputImageParams.
Constructors
- OutputImageCrop(OutputImageCropAspectRatio type, {Size? size, Color? padColor, bool? returnOriginalRect})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- padColor → Color?
-
When an image is aligned by
type
, its original size may be insufficient, and in this case it needs to be supplemented, "padded". padColor sets the value for the color that will be used for such a supplement.no setter - returnOriginalRect → bool
-
If set, the coordinates of the rectangle with the face in the original image prepared for the face crop
are returned in the DetectFaceResult.originalRect field.
Default is
false
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size?
-
The resize value to process.
If the value doesn't match AspectRatio
type
proportion or minimum size, an adjustment is applied. Use OutputImageCropAspectRatio to check you size matches AspectRatiotype
proportions and minimum size.no setter - type → OutputImageCropAspectRatio
-
The aspect ratio according to which alignment is performed.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
dynamic jsonObject) → OutputImageCrop?