itkGenericExceptionMacro(<< "Could not open file (for writing): " << m_FileName);
m_HeaderSize = HEADER_INFO_SIZE + 32;
- char szHeader[HEADER_INFO_SIZE + 32] = {
+ unsigned char szHeader[HEADER_INFO_SIZE + 32] = {
0x00, 0x70, 0x44, 0x00, 0x64, 0x00, 0x64, 0x00, 0x20, 0x00, 0x20, 0x00, 0x01, 0x00, 0x01, 0x00,
0x00, 0x04, 0x00, 0x04, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6A, 0x18, 0x41,
0x04, 0x00, 0x40, 0x5F, 0x48, 0x01, 0x40, 0x00, 0x86, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
break;
}
- file.write(szHeader, m_HeaderSize);
+ file.write((const char *)szHeader, m_HeaderSize);
file.write( (const char *)buffer, GetImageSizeInBytes() );
file.close();
} ////