25 #if !defined(OPENNURBS_BITMAP_INC_) 26 #define OPENNURBS_BITMAP_INC_ 52 int Width()
const = 0;
54 int Height()
const = 0;
57 int BitsPerPixel()
const = 0;
59 int SizeofScan()
const = 0;
61 int SizeofImage()
const = 0;
68 const unsigned char* Bits(
113 const wchar_t* filename,
145 const void* source_buffer,
146 ON__UINT64 sizeof_source_buffer,
151 const wchar_t* destination_filename
177 const wchar_t* FullFileName()
const;
185 const wchar_t* RelativeFileName()
const;
191 void SetFullFileName(
const wchar_t* full_file_name );
194 void SetRelativeFileName(
const wchar_t* relative_file_name );
196 ON__UINT64 FileSize()
const;
197 ON__UINT64 FileLastModifiedTime()
const;
198 ON__UINT32 FileCRC()
const;
227 unsigned char m_reserved3[7];
231 #if !defined(ON_OS_WINDOWS_GDI) 354 void EmergencyDestroy();
382 ON_BOOL32 IsValid(
ON_TextLog* text_log = NULL )
const;
395 int PaletteColorCount()
const;
396 int SizeofPalette()
const;
397 int BitsPerPixel()
const;
399 int SizeofScan()
const;
400 int SizeofImage()
const;
405 const unsigned char* Bits(
424 #if defined(ON_OS_WINDOWS_GDI) 525 bool Create(
const BITMAPINFO* bmi,
526 const unsigned char* bits,
538 bool IsContiguous()
const;
540 #if defined(ON_OS_WINDOWS_GDI) 576 void EmergencyDestroy();
578 void Create(
int sizeof_buffer );
580 ON_BOOL32 IsValid(
ON_TextLog* text_log = NULL )
const;
587 int BitsPerPixel()
const;
588 int SizeofScan()
const;
589 int SizeofImage()
const;
590 unsigned char* Bits(
int);
591 const unsigned char* Bits(
int)
const;
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_UUID ModelObjectId() const
ON_wString m_bitmap_filename
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
unsigned char m_bCompressedBuffer
ON_Object & operator=(const ON_Object &)
unsigned char rgbReserved
unsigned int biCompression
unsigned int biClrImportant
ON_wString m_full_file_name
ON_WindowsBITMAPINFOHEADER bmiHeader
struct ON_WindowsBITMAPINFO * m_bmi
virtual void Dump(ON_TextLog &) const
ON__UINT32 m_biffer_crc32
ON_wString m_relative_file_name
unsigned short biBitCount