Vuo  2.3.2
Functions
VuoImageGet.cc File Reference

Description

VuoImageGet implementation.

Definition in file VuoImageGet.cc.

Go to the source code of this file.

Functions

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)
 Retrieves the image at the specified imageURL, and creates a VuoImage from it. More...
 

Function Documentation

◆ 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.