Pixbuf.getFileInfo

Parses an image file far enough to determine its format and size.

class Pixbuf
static
getFileInfo
(
string filename
,
out int width
,
out int height
)

Parameters

filename string

The name of the file to identify.

width int

Return location for the width of the image, or NULL

height int

Return location for the height of the image, or NULL

Return Value

A gdkpixbuf.PixbufFormat describing the image format of the file or NULL if the image format wasn't recognized. The return value is owned by gdk.Pixbuf and should not be freed.

Meta