PixbufLoader.setSize

void setSize(int width, int height)

Causes the image to be scaled while it is loaded.

The desired image size can be determined relative to the original size of the image by calling [gdkpixbuf.pixbuf_loader.PixbufLoader.setSize] from a signal handler for the ::size-prepared signal.

Attempts to set the desired image size are ignored after the emission of the ::size-prepared signal.

Parameters

widthThe desired width of the image being loaded.
heightThe desired height of the image being loaded.