VuoImageGet implementation.
Definition in file VuoImageGet.cc.
Go to the source code of this file.
Macros | |
#define | BOOL FREEIMAGE_BOOL |
Support compiling in Objective-C mode (which defines its own BOOL type having a different underlying type than FreeImage's). | |
Functions | |
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. | |
#define BOOL FREEIMAGE_BOOL |
Support compiling in Objective-C mode (which defines its own BOOL type having a different underlying type than FreeImage's).
Definition at line 24 of file VuoImageGet.cc.
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.
Definition at line 55 of file VuoImageGet.cc.