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)
395 int PaletteColorCount()
const;
396 int SizeofPalette()
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)
578 void Create(
int sizeof_buffer );
590 unsigned char*
Bits(
int);
591 const unsigned char*
Bits(
int)
const;
unsigned char rgbReserved
unsigned char m_bCompressedBuffer
ON_wString m_bitmap_filename
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
ON_WindowsRGBQUAD bmiColors[1]
ON_wString m_relative_file_name
virtual int SizeofScan() const =0
struct ON_WindowsBITMAPINFO * m_bmi
ON_BOOL32 Read(ON_BinaryArchive &)
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
virtual int SizeofImage() const =0
ON_BOOL32 Write(ON_BinaryArchive &) const
unsigned int biCompression
unsigned short biBitCount
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
virtual void Dump(ON_TextLog &) const
virtual int Height() const =0
ON__UINT32 m_biffer_crc32
virtual int Width() const =0
ON_Object & operator=(const ON_Object &)
virtual ON_UUID ModelObjectId() const
virtual int BitsPerPixel() const =0
virtual unsigned char * Bits(int)=0
ON_wString m_full_file_name
unsigned int biClrImportant
ON_WindowsBITMAPINFOHEADER bmiHeader