Choreonoid  1.5
ImageIO.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_IMAGE_IO_H
7 #define CNOID_UTIL_IMAGE_IO_H
8 
9 #include "Image.h"
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
15 {
16 public:
17  ImageIO();
18 
19  void setUpsideDown(bool on) { isUpsideDown_ = on; }
20 
22  void allocateAlphaComponent(bool on);
23 
24  void load(Image& image, const std::string& filename);
25  void save(const Image& image, const std::string& filename);
26 
27 private:
28  bool isUpsideDown_;
29 };
30 
31 }
32 
33 #endif
Definition: ImageIO.h:14
Definition: Image.h:15
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
void setUpsideDown(bool on)
Definition: ImageIO.h:19
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37