Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef GUI_IMAGE___IMAGE_READER__HPP
2 #define GUI_IMAGE___IMAGE_READER__HPP
79 eCompress_Min = eCompress_None,
80 eCompress_Max = eCompress_High,
81 eCompress_Default = eCompress_Medium
86 static EType GetTypeFromMagic(
const string&
file);
91 static EType GetTypeFromFileName(
const string&
file);
99 static bool ReadImageInfo(
const string&
file,
100 size_t* width,
size_t* height,
size_t*
depth,
103 size_t* width,
size_t* height,
size_t*
depth,
108 size_t x,
size_t y,
size_t w,
size_t h,
110 static CImage* ReadSubImage(
const string&
file,
111 size_t x,
size_t y,
size_t w,
size_t h,
118 ECompress
compress = eCompress_Default);
119 static bool WriteImage(
const CImage& image,
const string&
file,
121 ECompress
compress = eCompress_Default);
125 size_t x,
size_t y,
size_t w,
size_t h,
127 ECompress
compress = eCompress_Default);
128 static bool WriteSubImage(
const CImage& image,
const string&
file,
129 size_t x,
size_t y,
size_t w,
size_t h,
131 ECompress
compress = eCompress_Default);
class CImageIOHandler This is the base class for all image I/O handlers, and defines the standard int...
Include a standard set of the NCBI C++ Toolkit most basic headers.
static unsigned char depth[2 *(256+1+29)+1]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
#define NCBI_XIMAGE_EXPORT