00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef Motion2DImage_PNG_h
00016 #define Motion2DImage_PNG_h
00017
00018 #ifndef __NO_IMAGEIO_PNG_
00019
00020 #include <CMotion2DImage.h>
00021
00022 using namespace std;
00023
00024 #if defined (WIN32)
00025 # if defined MOTION2D_DLL_EXPORTS
00026 # define MOTION2D_API __declspec( dllexport )
00027 # elif defined MOTION2D_DLL_IMPORTS
00028 # define MOTION2D_API __declspec( dllimport )
00029 # else
00030 # define MOTION2D_API
00031 # endif
00032 #else
00033 # define MOTION2D_API
00034 #endif
00035
00058 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00059 MOTION2D_API
00060 #endif
00061 int ReadPNG(CMotion2DImage<unsigned char> &I, const char *filename);
00079 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00080 MOTION2D_API
00081 #endif
00082 int ReadPNG(CMotion2DImage<short> &I, const char *filename);
00095 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00096 MOTION2D_API
00097 #endif
00098 int WritePNG(CMotion2DImage<unsigned char> &I, const char *filename);
00099
00112 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00113 MOTION2D_API
00114 #endif
00115 int WritePNG(CMotion2DImage<short> &I, const char *filename);
00116 #endif
00117
00118 #endif