std/image/resize/AreaResizestructjsscheller/scrilib

Resize the image so that its area is less than or equal to the specified area.

Fields
area : Integer

The area in pixels.

exact_match : Option<Boolean>

Force the area of the resized image to exactly match the given area by cutting and/or padding.

pad_color : String

The color of the padding (border) in hexadecimal format.

dimension : WidthOrHeight

Specify width or height.