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
/****************************************************************************/
14
// static helpers for loading and saving images in various formats
15
/****************************************************************************/
16
#ifndef MFXImageHelper_h
17
#define MFXImageHelper_h
18
19
20
// ===========================================================================
21
// included modules
22
// ===========================================================================
23
#include <
config.h
>
24
25
#include <string>
26
#include <vector>
27
#include <fx.h>
28
#include <
utils/common/UtilExceptions.h
>
29
30
class
MFXImageHelper
{
31
public
:
32
static
void
checkSupported
(FXString ext);
33
static
FXImage*
loadImage
(FXApp* a,
const
std::string& file);
34
static
FXbool
scalePower2
(FXImage* image,
int
maxSize = (2 << 29));
35
static
FXbool
saveImage
(
const
std::string& file,
36
int
width,
int
height, FXColor* data);
37
38
39
};
40
41
42
#endif
43
44
/****************************************************************************/
45
MFXImageHelper::loadImage
static FXImage * loadImage(FXApp *a, const std::string &file)
Definition:
MFXImageHelper.cpp:59
MFXImageHelper::scalePower2
static FXbool scalePower2(FXImage *image, int maxSize=(2<< 29))
Definition:
MFXImageHelper.cpp:106
UtilExceptions.h
MFXImageHelper::saveImage
static FXbool saveImage(const std::string &file, int width, int height, FXColor *data)
Definition:
MFXImageHelper.cpp:138
config.h
MFXImageHelper
Definition:
MFXImageHelper.h:30
MFXImageHelper::checkSupported
static void checkSupported(FXString ext)
Definition:
MFXImageHelper.cpp:41
src
utils
foxtools
MFXImageHelper.h
Generated on Thu Jan 16 2020 21:12:23 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16