get_image


Description:

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

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.

Parameters:

this

a Screenshot instance.

width

target width

height

target height

Returns:

an Image, or null