CFx SDK Documentation  2022 SP0
Public Member Functions | Public Attributes | List of all members
OdThumbnailImage Class Reference

#include <ThumbnailImage.h>

Public Member Functions

bool hasHeader () const
 
bool hasBmp () const
 
bool hasWmf () const
 
bool hasPng () const
 
int getNumEntries () const
 
bool convPngToBmp ()
 
bool convBmpToPng ()
 
void setImageData (const void *pData, OdUInt32 dataLengt)
 
const voidgetImageData (OdUInt32 &dataLengt)
 
bool setRasterImage (const OdGiRasterImage *image)
 
OdGiRasterImagePtr getRasterImage ()
 

Public Attributes

OdBinaryData header
 
OdBinaryData bmp
 
OdBinaryData wmf
 
OdBinaryData png
 

Detailed Description

This class is a data container class for .dwg file Preview Bitmaps. Corresponding C++ library: TD_DbRoot <group Other_Classes>

Definition at line 43 of file ThumbnailImage.h.

Member Function Documentation

◆ convBmpToPng()

bool OdThumbnailImage::convBmpToPng ( )

Converts the bmp data to png data for this ThumbnailImage object.

◆ convPngToBmp()

bool OdThumbnailImage::convPngToBmp ( )

Converts the png data to bmp data for this ThumbnailImage object.

◆ getImageData()

const void* OdThumbnailImage::getImageData ( OdUInt32 dataLengt)

Gets PNG, BMP or DIB data for this ThumbnailImage object.

◆ getNumEntries()

int OdThumbnailImage::getNumEntries ( ) const
inline

Returns the number of entries populated for this ThumbnailImage object.

Remarks
Returns ((hasHeader()?1:0)+(hasBmp()?1:0)+(hasWmf()?1:0)+(hasPng()?1:0))

Definition at line 77 of file ThumbnailImage.h.

◆ getRasterImage()

OdGiRasterImagePtr OdThumbnailImage::getRasterImage ( )

Gets raster image from data for this ThumbnailImage object.

◆ hasBmp()

bool OdThumbnailImage::hasBmp ( ) const
inline

Returns true if and only if the bmp data is populated for this ThumbnailImage object.

Definition at line 59 of file ThumbnailImage.h.

◆ hasHeader()

bool OdThumbnailImage::hasHeader ( ) const
inline

Returns true if and only if the header data is populated for this ThumbnailImage object.

Definition at line 54 of file ThumbnailImage.h.

◆ hasPng()

bool OdThumbnailImage::hasPng ( ) const
inline

Returns true if and only if the png data is populated for this ThumbnailImage object.

Definition at line 69 of file ThumbnailImage.h.

◆ hasWmf()

bool OdThumbnailImage::hasWmf ( ) const
inline

Returns true if and only if the wmf data is populated for this ThumbnailImage object.

Definition at line 64 of file ThumbnailImage.h.

◆ setImageData()

void OdThumbnailImage::setImageData ( const void pData,
OdUInt32  dataLengt 
)

Sets PNG, BMP or DIB data for this ThumbnailImage object.

◆ setRasterImage()

bool OdThumbnailImage::setRasterImage ( const OdGiRasterImage image)

Sets data from image for this ThumbnailImage object.

Member Data Documentation

◆ bmp

OdBinaryData OdThumbnailImage::bmp

Definition at line 47 of file ThumbnailImage.h.

◆ header

OdBinaryData OdThumbnailImage::header

Definition at line 46 of file ThumbnailImage.h.

◆ png

OdBinaryData OdThumbnailImage::png

Definition at line 49 of file ThumbnailImage.h.

◆ wmf

OdBinaryData OdThumbnailImage::wmf

Definition at line 48 of file ThumbnailImage.h.


The documentation for this class was generated from the following file: