9 #define WIN32_LEAN_AND_MEAN
15 #include <FreeImagePlus.h>
32 static bool WriteTiffShort (
const char* fileName,
int width,
int height,
int stride,
33 const unsigned short int * data,
const char* tags =
nullptr);
36 static bool WriteTiffChar (
const char* fileName,
int width,
int height,
int stride,
int bpp,
37 const unsigned char * data,
const char* tags =
nullptr);
40 static bool OpenWriteBufferToMPTifFile (
const char* qualifiedFilename,
41 bool create,
const unsigned short int* buffer,
42 int width,
int height,
unsigned int bitsPerPixel,
43 int location,
const char* tags =
nullptr);
45 static bool WriteBufferToMPTifFile (
const unsigned short int* buffer,
int width,
46 int height,
unsigned int bitsPerPixel,
47 int location,
const char* tags =
nullptr);
49 static int GetNumPagesInMPTifFile (
const char* qualifiedFilename);
51 static bool GetPageSizeInMPTifFile (
const char* qualifiedFilename,
int pageNum,
52 unsigned int* width,
unsigned int* height,
55 static bool OpenReadPageInMPTifFile (
const char* qualifiedFilename,
int pageNum,
56 unsigned short int* data,
char* tags =
nullptr);
57 static bool ReadPageInMPTifFile (
int pageNum,
unsigned short int* data,
58 char* tags =
nullptr);
59 static bool OpenReadCharPageInMPTifFile (
const char* qualifiedFilename,
int pageNum,
60 unsigned char* data,
char* tags =
nullptr);
61 static bool ReadCharPageInMPTifFile (
int pageNum,
unsigned char* data,
62 char* tags =
nullptr);
63 static bool CloseMPTifFile();
65 static void AddTagsToImage (fipImage& image,
const char* tags);
68 static fipMultiPage _multiPage;
Definition: TiffUtils.h:30