18 #ifndef itkBMPImageIO_h
19 #define itkBMPImageIO_h
20 #include "ITKIOBMPExport.h"
59 itkGetConstMacro(FileLowerLeft,
bool);
62 itkGetConstMacro(BMPCompression,
long);
65 itkGetConstReferenceMacro(ColorPalette,
PaletteType);
72 CanReadFile(
const char *)
override;
76 ReadImageInformation()
override;
80 Read(
void * buffer)
override;
87 CanWriteFile(
const char *)
override;
91 WriteImageInformation()
override;
96 Write(
const void * buffer)
override;
101 PrintSelf(std::ostream & os,
Indent indent)
const override;
105 SwapBytesIfNecessary(
void * buffer,
SizeValueType numberOfPixels);
109 Write32BitsInteger(
unsigned int value);
112 Write16BitsInteger(
unsigned short value);
115 GetColorPaletteEntry(
const unsigned char entry)
const;
119 long m_BitMapOffset{ 0 };
120 bool m_FileLowerLeft{
false };
122 unsigned short m_NumberOfColors{ 0 };
123 unsigned int m_ColorPaletteSize{ 0 };
124 long m_BMPCompression{ 0 };
125 unsigned long m_BMPDataSize{ 0 };
130 #endif // itkBMPImageIO_h