CFx SDK Documentation
2020SP3
|
#include <PdfPublishImage.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdImage) | |
ODRX_HEAP_OPERATORS () | |
OdImage () | |
virtual | ~OdImage () |
void | setFile (const OdString &filename) |
void | setImage (const OdGiRasterImagePtr &pRasterImage) |
void | setSize (const OdInt32 width, const OdInt32 height) |
void | getFile (OdString &out_filename) const |
void | getImage (OdGiRasterImagePtr &pOutRasterImage) const |
void | getSize (OdInt32 &width, OdInt32 &height) const |
Public Member Functions inherited from OdPdfPublish::OdObject | |
ODRX_DECLARE_MEMBERS (OdObject) | |
ODRX_HEAP_OPERATORS () | |
virtual | ~OdObject () |
virtual bool | isEmpty () const |
virtual bool | isValid () const |
virtual void | clear () |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions inherited from OdPdfPublish::OdObject | |
OdObject (OdPublishObjectImpl *pImpl) | |
This class implements an image entity in .pdf documents created with Teigha Publish.
Definition at line 45 of file PdfPublishImage.h.
OdPdfPublish::OdImage::OdImage | ( | ) |
Creates an image object.
|
virtual |
Destroys an image object.
Returns current image full filename. The method fills a passed string object and returns it to the calling subroutine.
out_filename | [out] A placeholder for the full filename. |
void OdPdfPublish::OdImage::getImage | ( | OdGiRasterImagePtr & | pOutRasterImage | ) | const |
Returns current image size (width and height in pixels). The method fills passed integer values representing width and height of the image and returns them to the calling subroutine.
width | [out] A placeholder for the width value. |
height | [out] A placeholder for the height value. |
OdPdfPublish::OdImage::ODRX_DECLARE_MEMBERS | ( | OdImage | ) |
OdPdfPublish::OdImage::ODRX_HEAP_OPERATORS | ( | ) |
Sets a full filename of the image. Use IsValid() to check the status of the operation.
filename | [in] A new filename value. |
void OdPdfPublish::OdImage::setImage | ( | const OdGiRasterImagePtr & | pRasterImage | ) |
Sets the image size in pixels.
width | [in] A width value in pixels. |
height | [in] A height value in pixels. |