24#if !defined(OPENNURBS_BITMAP_INC_)
25#define OPENNURBS_BITMAP_INC_
45 void EmergencyDestroy();
78#if !defined(ON_OS_WINDOWS_GDI)
201 void EmergencyDestroy();
242 int PaletteColorCount()
const;
243 int SizeofPalette()
const;
244 int BitsPerPixel()
const;
246 int SizeofScan()
const;
247 int SizeofImage()
const;
252 const unsigned char* Bits(
271#if defined(ON_OS_WINDOWS_GDI)
376 bool Create(
const BITMAPINFO* bmi,
377 const unsigned char* bits,
389 bool IsContiguous()
const;
391#if defined(ON_OS_WINDOWS_GDI)
427 void EmergencyDestroy();
429 void Create(
int sizeof_buffer );
438 int BitsPerPixel()
const;
439 int SizeofScan()
const;
440 int SizeofImage()
const;
441 unsigned char* Bits(
int);
442 const unsigned char* Bits(
int)
const;
Definition opennurbs_archive.h:152
Definition opennurbs_bitmap.h:28
virtual const unsigned char * Bits(int) const =0
virtual int Width() const =0
virtual int SizeofScan() const =0
virtual unsigned char * Bits(int)=0
ON_wString m_bitmap_name
Definition opennurbs_bitmap.h:73
ON_UUID m_bitmap_id
Definition opennurbs_bitmap.h:71
ON_wString m_bitmap_filename
Definition opennurbs_bitmap.h:74
ON_OBJECT_DECLARE(ON_Bitmap)
virtual int Height() const =0
virtual int SizeofImage() const =0
virtual int BitsPerPixel() const =0
int m_bitmap_index
Definition opennurbs_bitmap.h:72
Definition opennurbs_color.h:24
Definition opennurbs_bitmap.h:422
ON_OBJECT_DECLARE(ON_EmbeddedBitmap)
void * m_buffer
Definition opennurbs_bitmap.h:444
size_t m_sizeof_buffer
Definition opennurbs_bitmap.h:445
ON__UINT32 m_biffer_crc32
Definition opennurbs_bitmap.h:447
int m_free_buffer
Definition opennurbs_bitmap.h:446
Definition opennurbs_object.h:393
virtual void Dump(ON_TextLog &) const
Definition opennurbs_object.cpp:1695
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
Definition opennurbs_object.cpp:1734
virtual ON_UUID ModelObjectId() const
Definition opennurbs_object.cpp:1622
ON_Object & operator=(const ON_Object &)
Definition opennurbs_object.cpp:1362
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition opennurbs_object.cpp:1714
Definition opennurbs_textlog.h:20
Definition opennurbs_uuid.h:31
Definition opennurbs_bitmap.h:412
ON_OBJECT_DECLARE(ON_WindowsBitmapEx)
Definition opennurbs_bitmap.h:189
int m_bFreeBMI
Definition opennurbs_bitmap.h:400
unsigned char * m_bits
Definition opennurbs_bitmap.h:397
struct ON_WindowsBITMAPINFO * m_bmi
Definition opennurbs_bitmap.h:394
ON_OBJECT_DECLARE(ON_WindowsBitmap)
Definition opennurbs_string.h:392
#define ON_CLASS
Definition opennurbs_defines.h:91
#define NULL
Definition opennurbs_system.h:256
int ON_BOOL32
Definition opennurbs_system.h:362
unsigned int ON__UINT32
Definition opennurbs_system.h:326
Definition opennurbs_bitmap.h:93
unsigned int biCompression
Definition opennurbs_bitmap.h:132
int biYPelsPerMeter
Definition opennurbs_bitmap.h:148
unsigned int biSize
Definition opennurbs_bitmap.h:94
unsigned int biSizeImage
Definition opennurbs_bitmap.h:146
unsigned int biClrUsed
Definition opennurbs_bitmap.h:149
unsigned int biClrImportant
Definition opennurbs_bitmap.h:152
int biHeight
Definition opennurbs_bitmap.h:96
unsigned short biPlanes
Definition opennurbs_bitmap.h:101
int biXPelsPerMeter
Definition opennurbs_bitmap.h:147
unsigned short biBitCount
Definition opennurbs_bitmap.h:103
int biWidth
Definition opennurbs_bitmap.h:95
Definition opennurbs_bitmap.h:165
ON_WindowsBITMAPINFOHEADER bmiHeader
Definition opennurbs_bitmap.h:168
ON_WindowsRGBQUAD bmiColors[1]
Definition opennurbs_bitmap.h:169
Definition opennurbs_bitmap.h:155
unsigned char rgbGreen
Definition opennurbs_bitmap.h:159
unsigned char rgbReserved
Definition opennurbs_bitmap.h:161
unsigned char rgbRed
Definition opennurbs_bitmap.h:160
unsigned char rgbBlue
Definition opennurbs_bitmap.h:158