ScaleCropTransformation class
Downscale an image along one of the axes (the one with smaller linear size) and crop the rest. The method can be implemented with manual, center-focused or “smart crop” behavior.
See https://uploadcare.com/docs/transformations/image/resize-crop/#operation-scale-crop
- Inheritance
-
- Object
- Transformation
- ResizeTransformation
- ScaleCropTransformation
- Implemented types
Constructors
- ScaleCropTransformation(Dimensions size, {ScaleCropTypeTValue? type, Offsets? offset, bool center = false})
Properties
- center → bool
-
centering the crop focus.
final
- delimiter → String
-
Instruction delimiter
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- offset → Offsets?
-
setting is used to crop an image. When no offset are specified, images get center-cropped
final
- operation → String
-
CDN API operation URL directive
no setteroverride
-
params
→ List<
String> -
Related parameters
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Dimensions
-
finalinherited
- value → ScaleCropTypeTValue?
-
an optional ScaleCropTypeTValue which enables smart image analysis.
Each smart analysis mode combines various methods for detecting areas of interest in an image.
The methods you include are applied sequentially.
The algorithm switches to the next method only if no regions were found by the previous one.
If no regions of interest were found, the offset setting is used to crop an image.
final
- valueAsString → String
-
no setteroverride
Methods
-
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 ==(
dynamic other) → bool -
The equality operator.
inherited