Parameters
- compression
- Compression that should be applied to the image-resource.
- compressionSettings
- Compression settings.
- scaleX
- Scale factor of X axis.
- scaleY
- Scale factor of Y axis.
- interpolationMode
- Interpolation mode that should be used for resampling image.
- compressOnlyIfSizeReduced
- A value indicating whether the compression must be applied to the image-resource only if new size of image-resource is less than previous size of image-resource.
Return Value
True if compression is applied to the image-resource; otherwise, false.