shrinkToFit()
Overview
public void function shrinkToFit(
required string filePath
, required numeric width
, required numeric height
, string quality = "highPerformance"
, string paddingColour = ""
, struct fileProperties
)
Shrinks an native image to fit within a given width and height, without changing the native images aspect ratio.
Arguments
Name | Type | Required | Description |
---|---|---|---|
filePath | string | Yes | |
width | numeric | Yes | Maximum width for the native image, in pixels |
height | numeric | Yes | Maximum height for the native image, in pixels |
quality | string | No (default="highPerformance") | Resize algorithm quality. Options are: highestQuality, highQuality, mediumQuality, highestPerformance, highPerformance and mediumPerformance |
paddingColour | string | No (default="") | |
fileProperties | struct | No |