Function

CoglBitmapget_size_from_file

Declaration [src]

gboolean
cogl_bitmap_get_size_from_file (
  const char* filename,
  int* width,
  int* height
)

Description [src]

Parses an image file enough to extract the width and height of the bitmap.

Available since:1.0

Parameters

filename const char*
 

The file to check.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
width int*
 

Return location for the bitmap width, or NULL.

 The argument will be set by the function.
height int*
 

Return location for the bitmap height, or NULL.

 The argument will be set by the function.

Return value

Returns: gboolean
 

TRUE if the image was successfully parsed.