Fit
The fit parameter controls how the image will be constrained within the provided size (width and height) values, in order to maintain the correct proportions.
NOTE: The fit parameter has no effect unless both width and height are specified.
enum Fit {
BOUNDS
COVER
CROP
}
Values
Fit.BOUNDS
Resize the image to fit entirely within the specified region, making one dimension smaller if needed.
Fit.COVER
Resize the image to entirely cover the specified region, making one dimension larger if needed.
Fit.CROP
Resize and crop the image centrally to exactly fit the specified region.
Member Of
TransformationInput
input