Vuo  2.0.0
Functions
VuoImageGet.cc File Reference

Description

VuoImageGet implementation.

Definition in file VuoImageGet.cc.

Go to the source code of this file.

Functions

 __attribute__ ((constructor)) static void VuoImageGet_init(void)
 Initializes the FreeImage library. More...
 
static void FreeImageErrorHandler (FREE_IMAGE_FORMAT fif, const char *message)
 Logs error messages coming from FreeImage. More...
 
float VuoImage_getScaleFactor (const char *url)
 Returns the VuoImage::scaleFactor for the specified URL. More...
 
VuoImage VuoImage_get (const char *imageURL)
 

Function Documentation

◆ __attribute__()

__attribute__ ( (constructor)  )

Initializes the FreeImage library.

Definition at line 42 of file VuoImageGet.cc.

◆ FreeImageErrorHandler()

static void FreeImageErrorHandler ( FREE_IMAGE_FORMAT  fif,
const char *  message 
)
static

Logs error messages coming from FreeImage.

Definition at line 50 of file VuoImageGet.cc.

◆ VuoImage_getScaleFactor()

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 65 of file VuoImageGet.cc.