25 #if !defined(OPENNURBS_BITMAP_INC_) 26 #define OPENNURBS_BITMAP_INC_ 50 static const ON_Bitmap* FromModelComponentRef(
62 unsigned int SizeOf()
const override;
71 int BitsPerPixel()
const;
74 size_t SizeofScan()
const;
77 size_t SizeofImage()
const;
85 const unsigned char* Bits(
90 void SetFileReference(
94 const wchar_t* file_full_path,
102 #if defined(ON_DLL_TEMPLATE) 107 #if !defined(ON_OS_WINDOWS_GDI) 123 unsigned char rgbBlue;
124 unsigned char rgbGreen;
125 unsigned char rgbRed;
126 unsigned char rgbReserved;
132 unsigned short bfType;
134 unsigned short bfReserved1;
135 unsigned short bfReserved2;
136 unsigned int bfOffBits;
152 unsigned short biPlanes;
154 unsigned short biBitCount;
183 unsigned int biCompression;
197 unsigned int biSizeImage;
200 unsigned int biClrUsed;
203 unsigned int biClrImportant;
256 bool IsEmpty()
const;
260 unsigned int SizeOf()
const override;
269 int Width()
const override;
270 int Height()
const override;
273 int PaletteColorCount()
const;
274 int SizeofPalette()
const;
276 int BitsPerPixel()
const override;
277 size_t SizeofScan()
const override;
278 size_t SizeofImage()
const override;
283 const unsigned char* Bits(
302 #if defined(ON_OS_WINDOWS_GDI) 404 const BITMAPINFO* bmi,
405 const unsigned char* bits,
417 bool IsContiguous()
const;
419 #if defined(ON_OS_WINDOWS_GDI) 420 BITMAPINFO* m_bmi =
nullptr;
440 unsigned char* m_bits =
nullptr;
453 void Internal_Destroy();
502 unsigned int SizeOf()
const override;
504 size_t SizeofImage()
const override;
505 unsigned char* Bits(
int)
override;
506 const unsigned char* Bits(
int)
const override;
508 const void* m_buffer =
nullptr;
509 size_t m_sizeof_buffer = 0;
510 bool m_managed_buffer =
false;
511 ON__UINT32 m_buffer_crc32 = 0;
518 void Internal_Destroy();
Definition: opennurbs_bitmap.h:468
The ON_ModelComponent class is a base class for all components in a model and manages the index...
Definition: opennurbs_model_component.h:24
unsigned int SizeOf() const override
void Dump(ON_TextLog &) const override
Creates a text dump of the object.
Definition: opennurbs_array.h:36
bool IsValid(class ON_TextLog *text_log=nullptr) const override
Tests an object to see if its data members are correctly initialized.
Definition: opennurbs_color.h:24
static const ON_Bitmap Unset
Definition: opennurbs_bitmap.h:38
Windows sizeof(ON_WindowsRGBQUAD) = 4.
Definition: opennurbs_bitmap.h:118
Definition: opennurbs_bitmap.h:28
Windows packs BITMAPFILEHEADER.
Definition: opennurbs_bitmap.h:129
static const ON_ModelComponent Unset
Definition: opennurbs_model_component.h:222
Definition: opennurbs_bitmap.h:204
ON_WindowsBitmapEx is identical to ON_WindowsBitmap except that it's Read/Write functions save bitmap...
Definition: opennurbs_bitmap.h:449
Definition: opennurbs_textlog.h:20
Definition: opennurbs_archive.h:1783
ON_ModelComponent & operator=(const ON_ModelComponent &source)
virtual bool Read(ON_BinaryArchive &binary_archive)
Low level archive writing tool used by ON_BinaryArchive::ReadObject().
Definition: opennurbs_model_component.h:1622
Definition: opennurbs_bitmap.h:226
virtual bool Write(ON_BinaryArchive &binary_archive) const
Low level archive writing tool used by ON_BinaryArchive::WriteObject().
Definition: opennurbs_bitmap.h:141
Definition: opennurbs_file_utilities.h:1125