The functions in this section cover handling of Ocular's internal image data structures and retrieving information about image files.
|
bool | ocularGetImageSize (const char *file_path, int *width, int *height, int *file_size) |
| Quickly retrieve width and height from an image file without processing image. Supports PNG/GIF/JPEG/BMP/ICO files.
|
|
const char * | ocularGetVersion () |
| Get the version of the library.
|
|
const char * | ocularGetStatusString (OC_STATUS status) |
| Get the status string for a given status code.
|
|
◆ ocularGetImageSize()
bool ocularGetImageSize |
( |
const char * | file_path, |
|
|
int * | width, |
|
|
int * | height, |
|
|
int * | file_size ) |
Quickly retrieve width and height from an image file without processing image. Supports PNG/GIF/JPEG/BMP/ICO files.
- Parameters
-
| file_path | The absolute file path of the image file. |
[out] | width | The returned image file width. |
[out] | height | The returned image file height. |
| file_size[out] | The returned file size in bytes. |
- Returns
- True if able to get image size, otherwise False.
◆ ocularGetVersion()
const char * ocularGetVersion |
( |
| ) |
|
Get the version of the library.
- Returns
- The version of the library as string.
◆ ocularGetStatusString()
const char * ocularGetStatusString |
( |
OC_STATUS | status | ) |
|
Get the status string for a given status code.
- Parameters
-
status | The status code returned by Ocular functions. |
- Returns
- The status string.