CFx SDK Documentation 2024 SP0
|
#include <PdfPublishImage.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdImage) | |
ODRX_HEAP_OPERATORS () | |
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 |
void | setLayer (const Od2dGeometryLayerPtr &layer) |
void | getLayer (Od2dGeometryLayerPtr &layer) 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 |
Protected Member Functions | |
OdImage () | |
Protected Member Functions inherited from OdPdfPublish::OdObject | |
OdObject (OdPublishObjectImpl *pImpl) | |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class implements an image entity in .pdf documents created with Publish SDK.
Definition at line 47 of file PdfPublishImage.h.
|
protected |
|
virtual |
Destroys an image object.
Returns the 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 the current raster image object. The method fills a passed raster image object and returns it to the calling subroutine.
pOutRasterImage | [out] A placeholder for the raster image object. |
void OdPdfPublish::OdImage::getLayer | ( | Od2dGeometryLayerPtr & | layer | ) | const |
Returns the current PDF layer object for the image object.
layer | [out] A placeholder for a smart pointer to PDF layer object. |
Returns the current image size (width and height in pixels). The method fills the 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 the 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 a raster image object as the source for the image.
pRasterImage | [in] A smart pointer to a raster image object. |
void OdPdfPublish::OdImage::setLayer | ( | const Od2dGeometryLayerPtr & | layer | ) |
Sets the new PDF layer object for the image object.
layer | [in] A smart pointer to a PDF layer object. |
Sets the image size in pixels.
width | [in] A width value in pixels. |
height | [in] A height value in pixels. |