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

Meta