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

height int

Return location for the height of the image

Return Value

Type: gdkpixbuf.pixbuf_format.PixbufFormat

A gdkpixbuf.pixbuf_format.PixbufFormat describing the image format of the file