get_image


Description:

[ Version ( since = "0.14.0" ) ]
public unowned Image get_image (uint width, uint height)

Gets the AsImage closest to the target size.

The Image may not actually be the requested size, and the application may have to pad / rescale the image to make it fit. Only images for the current active locale (or fallback, if images are not localized) are considered.

Parameters:

this

a Screenshot instance.

width

target width

height

target height

Returns:

an Image, or null