00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __MX_IMAGE_H_
00018 #define __MX_IMAGE_H_
00019 #include "mxjpeg.h"
00020 #include "mxpng.h"
00021 #include "mxsurface.h"
00022
00023
00024 namespace mx {
00028 class mxImage {
00029 public:
00031 mxImage() { }
00036 SDL_Surface *loadIMG(string filename);
00037
00043 bool loadIMG(mx::mxSurface &surface, string filename);
00048 void saveJPG(SDL_Surface *surf, string filename);
00049 };
00050 }
00051
00052
00053
00054
00055
00056
00057
00058
00059 #endif
00060
00061