Vuo
1.2.5
|
VuoImageGet implementation.
Functions | |
__attribute__ ((constructor)) static void VuoImageGet_init(void) | |
Initializes the FreeImage library. | |
static void | FreeImageErrorHandler (FREE_IMAGE_FORMAT fif, const char *message) |
Logs error messages coming from FreeImage. | |
float | VuoImage_getScaleFactor (const char *url) |
Returns the VuoImage::scaleFactor for the specified URL. | |
VuoImage | VuoImage_get (const char *imageURL) |
Retrieves the image at the specified imageURL , and creates a VuoImage from it. | |
__attribute__ | ( | (constructor) | ) |
Initializes the FreeImage library.
|
static |
Logs error messages coming from FreeImage.
float VuoImage_getScaleFactor | ( | const char * | url | ) |
Returns the VuoImage::scaleFactor for the specified URL.
If the image has a filename like image@2x.png
, this function returns 2.
If no scale factor suffix is found, returns 1.