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

A GdkPixbufFormat describing the image format of the file

Meta