Eclipse SUMO - Simulation of Urban MObility
MFXImageHelper Class Reference

#include <MFXImageHelper.h>

Static Public Member Functions

static void checkSupported (FXString ext)
 
static FXImage * loadImage (FXApp *a, const std::string &file)
 
static FXbool saveImage (const std::string &file, int width, int height, FXColor *data)
 
static FXbool scalePower2 (FXImage *image, int maxSize=(2<< 29))
 

Detailed Description

Definition at line 28 of file MFXImageHelper.h.

Member Function Documentation

◆ checkSupported()

void MFXImageHelper::checkSupported ( FXString  ext)
static

Definition at line 38 of file MFXImageHelper.cpp.

Referenced by loadImage(), and saveImage().

Here is the caller graph for this function:

◆ loadImage()

FXImage * MFXImageHelper::loadImage ( FXApp *  a,
const std::string &  file 
)
static

Definition at line 56 of file MFXImageHelper.cpp.

References checkSupported(), and toString().

Referenced by GUISUMOAbstractView::drawDecals(), and GUITexturesHelper::getTextureID().

Here is the caller graph for this function:

◆ saveImage()

FXbool MFXImageHelper::saveImage ( const std::string &  file,
int  width,
int  height,
FXColor *  data 
)
static

Definition at line 135 of file MFXImageHelper.cpp.

References checkSupported().

Referenced by GUISUMOAbstractView::makeSnapshot().

Here is the caller graph for this function:

◆ scalePower2()

FXbool MFXImageHelper::scalePower2 ( FXImage *  image,
int  maxSize = (2 << 29) 
)
static

Definition at line 103 of file MFXImageHelper.cpp.

Referenced by GUISUMOAbstractView::drawDecals(), and GUITexturesHelper::getTextureID().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: