Choreonoid  1.8
ImageIO.h
Go to the documentation of this file.
1 #ifndef CNOID_UTIL_IMAGE_IO_H
2 #define CNOID_UTIL_IMAGE_IO_H
3 
4 #include "Image.h"
5 #include "NullOut.h"
6 #include "exportdecl.h"
7 
8 namespace cnoid {
9 
10 class CNOID_EXPORT ImageIO
11 {
12 public:
13  ImageIO();
14 
15  void setUpsideDown(bool on) { isUpsideDown_ = on; }
16 
18  void allocateAlphaComponent(bool on);
19 
20  bool load(Image& image, const std::string& filename, std::ostream& os = nullout());
21  bool save(const Image& image, const std::string& filename, std::ostream& os = nullout());
22 
23 private:
24  bool isUpsideDown_;
25 };
26 
27 }
28 
29 #endif
NullOut.h
cnoid::nullout
std::ostream & nullout()
Definition: NullOut.cpp:26
cnoid::ImageIO
Definition: ImageIO.h:10
Image.h
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::ImageIO::setUpsideDown
void setUpsideDown(bool on)
Definition: ImageIO.h:15
cnoid::Image
Definition: Image.h:16