Pixbuf.getFileInfo

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

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. out

height int

Return location for the height of the image, or NULL. out

Return Value

A GdkPixbufFormat describing the image format of the file or NULL if the image format wasn't recognized. The return value is owned by GdkPixbuf and should not be freed. [transfer none]

Meta