newFromResourceAtScale

fun newFromResourceAtScale(resourcePath: String, width: Int, height: Int, preserveAspectRatio: Boolean): <Error class: unknown class><Pixbuf>

Creates a new pixbuf by loading an image from an resource.

The file format is detected automatically. If NULL is returned, then

Return

A newly-created pixbuf

Since

2.26

Parameters

resourcePath

the path of the resource file

width

The width the image should have or -1 to not constrain the width

height

The height the image should have or -1 to not constrain the height

preserveAspectRatio

TRUE to preserve the image's aspect ratio