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 string 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.
 The called function takes ownership of the data, and is responsible for freeing it.
height int*
 

Return location for the bitmap height, or NULL.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gboolean
 

TRUE if the image was successfully parsed.