StreamCdnImageResizing

constructor(imageResizingEnabled: Boolean, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) resizedWidthPercentage: Float, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) resizedHeightPercentage: Float, resizeMode: StreamCdnResizeImageMode?, cropMode: StreamCdnCropImageMode?)

Parameters

imageResizingEnabled

Enables or disables image resizing.

resizedWidthPercentage

The percentage of the original image width the resized image width will be.

resizedHeightPercentage

The percentage of the original image height the resized image height will be.

resizeMode

Sets the image resizing mode. If null, the default mode used by the CDN is StreamCdnResizeImageMode.CLIP.

cropMode

Sets the image crop mode. If null, the default mode used by the CDN is StreamCdnCropImageMode.CENTER.