set_from_file_at_size


Description:

public bool set_from_file_at_size (string filename, int width, int height) throws Error

Set the image data from an image file, and scale the image during loading.

In case of failure, false is returned and error is set. The aspect ratio will always be maintained.

Parameters:

this

An Image

filename

Filename to read the file from

width

Width to scale the image to, or -1

height

Height to scale the image to, or -1

Returns:

true if the image was successfully updated




2022 vala-language.org