Eclipse SUMO - Simulation of Urban MObility
MFXImageHelper.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2005-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// static helpers for loading and saving images in various formats
16
/****************************************************************************/
17
#ifndef MFXImageHelper_h
18
#define MFXImageHelper_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <string>
27
#include <vector>
28
#include <fx.h>
29
#include <
utils/common/UtilExceptions.h
>
30
31
class
MFXImageHelper
{
32
public
:
33
static
void
checkSupported
(FXString ext);
34
static
FXImage*
loadImage
(FXApp* a,
const
std::string& file);
35
static
FXbool
scalePower2
(FXImage* image,
int
maxSize = (2 << 29));
36
static
FXbool
saveImage
(
const
std::string& file,
37
int
width,
int
height, FXColor* data);
38
39
40
};
41
42
43
#endif
44
45
/****************************************************************************/
46
MFXImageHelper::loadImage
static FXImage * loadImage(FXApp *a, const std::string &file)
Definition:
MFXImageHelper.cpp:60
MFXImageHelper::scalePower2
static FXbool scalePower2(FXImage *image, int maxSize=(2<< 29))
Definition:
MFXImageHelper.cpp:107
UtilExceptions.h
MFXImageHelper::saveImage
static FXbool saveImage(const std::string &file, int width, int height, FXColor *data)
Definition:
MFXImageHelper.cpp:139
config.h
MFXImageHelper
Definition:
MFXImageHelper.h:31
MFXImageHelper::checkSupported
static void checkSupported(FXString ext)
Definition:
MFXImageHelper.cpp:42
src
utils
foxtools
MFXImageHelper.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16