25 #if !defined(OPENNURBS_BITMAP_INC_)
26 #define OPENNURBS_BITMAP_INC_
113 const wchar_t* filename,
145 const void* source_buffer,
146 ON__UINT64 sizeof_source_buffer,
151 const wchar_t* destination_filename
227 unsigned char m_reserved3[7];
231 #if !defined(ON_OS_WINDOWS_GDI)
424 #if defined(ON_OS_WINDOWS_GDI)
525 bool Create(
const BITMAPINFO* bmi,
526 const unsigned char* bits,
540 #if defined(ON_OS_WINDOWS_GDI)
591 const unsigned char*
Bits(
int)
const;
virtual int Width() const =0
void Dump(ON_TextLog &) const
virtual int SizeofScan() const =0
ON_wString m_bitmap_filename
virtual unsigned char * Bits(int)=0
virtual int Height() const =0
virtual int SizeofImage() const =0
ON_UUID ModelObjectId() const
virtual const unsigned char * Bits(int) const =0
virtual int BitsPerPixel() const =0
ON_BOOL32 Read(ON_BinaryArchive &)
void Create(int sizeof_buffer)
ON_BOOL32 Write(ON_BinaryArchive &) const
ON__UINT32 m_biffer_crc32
std::size_t m_sizeof_buffer
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
const unsigned char * Bits(int) const
unsigned char * Bits(int)
void SetFullFileName(const wchar_t *full_file_name)
bool Create(const wchar_t *filename, bool bCompress)
ON_BOOL32 Write(ON_BinaryArchive &) const
void SetRelativeFileName(const wchar_t *relative_file_name)
ON_EmbeddedFile & operator=(const ON_EmbeddedFile &src)
const wchar_t * FullFileName() const
bool Create(const void *source_buffer, ON__UINT64 sizeof_source_buffer, bool bCompress)
bool Extract(FILE *fp) const
ON__UINT64 FileSize() const
virtual ~ON_EmbeddedFile()
ON_EmbeddedFile(const ON_EmbeddedFile &src)
ON_wString m_full_file_name
unsigned char m_bCompressedBuffer
ON__UINT64 FileLastModifiedTime() const
bool Extract(void *buffer) const
ON_BOOL32 Read(ON_BinaryArchive &)
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
bool Extract(const wchar_t *destination_filename) const
ON_wString m_relative_file_name
const wchar_t * RelativeFileName() const
ON__UINT32 FileCRC() const
bool Create(FILE *fp, bool bCompress)
ON_Object & operator=(const ON_Object &)
ON_BOOL32 Read(ON_BinaryArchive &)
ON_BOOL32 Write(ON_BinaryArchive &) const
ON_WindowsBitmap(const ON_WindowsBitmap &)
int PaletteColorCount() const
const unsigned char * Bits(int) const
ON_Color Pixel(int, const unsigned char *) const
bool WriteCompressed(ON_BinaryArchive &) const
bool ReadUncompressed(ON_BinaryArchive &)
bool Create(int, int, int)
ON_WindowsBitmap & operator=(const ON_WindowsBitmap &)
bool ReadCompressed(ON_BinaryArchive &)
ON_BOOL32 Write(ON_BinaryArchive &) const
ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const
struct ON_WindowsBITMAPINFO * m_bmi
ON_BOOL32 Read(ON_BinaryArchive &)
int SizeofPalette() const
ON_Color Pixel(int, int) const
bool WriteUncompressed(ON_BinaryArchive &) const
bool IsContiguous() const
unsigned char * Bits(int)
unsigned int biCompression
unsigned int biClrImportant
unsigned short biBitCount
ON_WindowsBITMAPINFOHEADER bmiHeader
ON_WindowsRGBQUAD bmiColors[1]
unsigned char rgbReserved