CFx SDK Documentation
2023 SP0
|
#include <RxRasterServices.h>
Public Types | |
enum | ImageType { kUnknown = -1 , kBMP = OD_FOURCC(lit_B, lit_M, lit_P, lit_ ) , kICO = OD_FOURCC(lit_I, lit_C, lit_O, lit_ ) , kJPEG = OD_FOURCC(lit_J, lit_P, lit_E, lit_G) , kJNG = OD_FOURCC(lit_J, lit_N, lit_G, lit_ ) , kKOALA = OD_FOURCC(lit_K, lit_O, lit_A, lit_L) , kLBM = OD_FOURCC(lit_L, lit_B, lit_M, lit_ ) , kIFF = kLBM , kMNG = OD_FOURCC(lit_M, lit_N, lit_G, lit_ ) , kPBM = OD_FOURCC(lit_P, lit_B, lit_M, lit_ ) , kPBMRAW = OD_FOURCC(lit_P, lit_B, lit_M, lit_R) , kPCD = OD_FOURCC(lit_P, lit_C, lit_D, lit_ ) , kPCX = OD_FOURCC(lit_P, lit_C, lit_X, lit_ ) , kPGM = OD_FOURCC(lit_P, lit_G, lit_M, lit_ ) , kPGMRAW = OD_FOURCC(lit_P, lit_G, lit_M, lit_R) , kPNG = OD_FOURCC(lit_P, lit_N, lit_G, lit_ ) , kPPM = OD_FOURCC(lit_P, lit_P, lit_M, lit_ ) , kPPMRAW = OD_FOURCC(lit_P, lit_P, lit_M, lit_R) , kRAS = OD_FOURCC(lit_R, lit_A, lit_S, lit_ ) , kTARGA = OD_FOURCC(lit_T, lit_G, lit_A, lit_ ) , kTIFF = OD_FOURCC(lit_T, lit_I, lit_F, lit_F) , kWBMP = OD_FOURCC(lit_W, lit_B, lit_M, lit_P) , kPSD = OD_FOURCC(lit_P, lit_S, lit_D, lit_ ) , kCUT = OD_FOURCC(lit_C, lit_U, lit_T, lit_ ) , kXBM = OD_FOURCC(lit_X, lit_B, lit_M, lit_ ) , kXPM = OD_FOURCC(lit_X, lit_P, lit_M, lit_ ) , kDDS = OD_FOURCC(lit_D, lit_D, lit_S, lit_ ) , kGIF = OD_FOURCC(lit_G, lit_I, lit_F, lit_ ) , kHDR = OD_FOURCC(lit_H, lit_D, lit_R, lit_ ) , kFAXG3 = OD_FOURCC(lit_F, lit_X, lit_G, lit_3) , kSGI = OD_FOURCC(lit_S, lit_G, lit_I, lit_ ) , kEXR = OD_FOURCC(lit_E, lit_X, lit_R, lit_ ) , kJ2K = OD_FOURCC(lit_J, lit_2, lit_K, lit_ ) , kJP2 = OD_FOURCC(lit_J, lit_P, lit_2, lit_ ) , kPFM = OD_FOURCC(lit_P, lit_F, lit_M, lit_ ) , kPICT = OD_FOURCC(lit_P, lit_I, lit_C, lit_T) , kRAW = OD_FOURCC(lit_R, lit_A, lit_W, lit_ ) } |
enum | LoadFlags { kLoadFmt = OD_FOURCC(lit_F, lit_M, lit_T, lit_ ) , kNoTIFFRotation = OD_FOURCC(lit_N, lit_T, lit_F, lit_R) } |
enum | SaveFlags { kTransparentColor = OD_FOURCC(lit_T, lit_C, lit_L, lit_R) , kJpegQuality = OD_FOURCC(lit_J, lit_Q, lit_T, lit_Y) , kTiffCompression = OD_FOURCC(lit_T, lit_C, lit_M, lit_P) , kTiffCompressionDeflate = OD_FOURCC(lit_Z, lit_I, lit_P, lit_ ) , kTiffCompressionLzw = OD_FOURCC(lit_L, lit_Z, lit_W, lit_ ) , kTiffCompressionJpeg = OD_FOURCC(lit_J, lit_P, lit_E, lit_G) , kTiffCompressionCCITTFax3 = OD_FOURCC(lit_F, lit_A, lit_X, lit_3) , kTiffCompressionCCITTFax4 = OD_FOURCC(lit_F, lit_A, lit_X, lit_4) , kTiffCompressionEmbedded = OD_FOURCC(lit_E, lit_M, lit_B, lit_D) , kDithering = OD_FOURCC(lit_D, lit_I, lit_T, lit_H) , kDitheringFS = OD_FOURCC(lit_D, lit_T, lit_F, lit_S) , kDitheringBayer4x4 = OD_FOURCC(lit_B, lit_Y, lit_R, lit_4) , kDitheringBayer8x8 = OD_FOURCC(lit_B, lit_Y, lit_R, lit_8) , kDitheringBayer16x16 = OD_FOURCC(lit_B, lit_R, lit_1, lit_6) , kDitheringCluster6x6 = OD_FOURCC(lit_C, lit_L, lit_R, lit_6) , kDitheringCluster8x8 = OD_FOURCC(lit_C, lit_L, lit_R, lit_8) , kDitheringCluster16x16 = OD_FOURCC(lit_C, lit_L, lit_1, lit_6) , kRescale = OD_FOURCC(lit_R, lit_S, lit_C, lit_L) , kRescaleBox = OD_FOURCC(lit_B, lit_O, lit_X, lit_ ) , kRescaleBicubic = OD_FOURCC(lit_B, lit_C, lit_B, lit_C) , kRescaleBilinear = OD_FOURCC(lit_B, lit_L, lit_N, lit_R) , kRescaleBspline = OD_FOURCC(lit_B, lit_S, lit_P, lit_L) , kRescaleCatmullrom = OD_FOURCC(lit_C, lit_T, lit_M, lit_L) , kRescaleLanczos3 = OD_FOURCC(lit_L, lit_N, lit_C, lit_Z) , kRescaleWidth = OD_FOURCC(lit_W, lit_D, lit_T, lit_H) , kRescaleHeight = OD_FOURCC(lit_H, lit_G, lit_H, lit_T) , kQuantizeNone = OD_FOURCC(lit_C, lit_T, lit_O, lit_8) , kQuantizeWU = OD_FOURCC(lit_W, lit_U, lit_C, lit_Q) , kQuantizeNN = OD_FOURCC(lit_N, lit_N, lit_Q, lit_ ) , kQuantizeLFP = OD_FOURCC(lit_L, lit_F, lit_P, lit_Q) } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdRxRasterServices) | |
virtual OdGiRasterImagePtr | loadRasterImage (const OdString &filename, const OdUInt32 *pFlagsChain=NULL)=0 |
virtual OdGiRasterImagePtr | loadRasterImage (OdStreamBuf *pStreamBuf, const OdUInt32 *pFlagsChain=NULL)=0 |
virtual OdGiRasterImagePtr | createRasterImage (void *pImp) |
virtual bool | saveRasterImage (const OdGiRasterImage *rasterImage, const OdString &filename, const OdUInt32 *pFlagsChain=NULL)=0 |
virtual bool | saveRasterImage (const OdGiRasterImage *rasterImage, const OdString &filename, OdUInt32 type, const OdUInt32 *pFlagsChain=NULL)=0 |
virtual bool | convertRasterImage (const OdGiRasterImage *pRaster, OdUInt32 type, OdStreamBuf *pStreamBuf, const OdUInt32 *pFlagsChain=NULL)=0 |
virtual bool | convertRasterImage (OdStreamBuf *pSrcStream, OdStreamBuf *pDstStream, OdUInt32 type, const OdUInt32 *pFlagsChainSrc=NULL, const OdUInt32 *pFlagsChainDst=NULL)=0 |
virtual OdUInt32Array | getRasterImageTypes () const =0 |
virtual bool | isRasterImageTypeSupported (OdUInt32 type) const |
virtual OdString | mapTypeToExtension (OdUInt32 type, OdString *psFilterName) const =0 |
virtual OdUInt32 | mapExtensionToType (const OdString &extension) const =0 |
virtual OdUInt32 | getImageFormat (const OdString &filename) const =0 |
virtual OdUInt32 | getImageFormat (OdStreamBuf *pStreamBuf) const =0 |
Public Member Functions inherited from OdRxModule | |
ODRX_DECLARE_MEMBERS (OdRxModule) | |
virtual void * | sysData ()=0 |
virtual void | deleteModule ()=0 |
virtual void | initApp ()=0 |
virtual void | uninitApp ()=0 |
virtual OdString | moduleName () const =0 |
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 () |
This class is the base class for classes that provide platform-dependent loading and saving of Raster Image files for Teigha. Library: TD_Db <group OdRx_Classes>
Definition at line 124 of file RxRasterServices.h.
Definition at line 128 of file RxRasterServices.h.
Enumerator | |
---|---|
kLoadFmt | |
kNoTIFFRotation |
Definition at line 170 of file RxRasterServices.h.
Definition at line 179 of file RxRasterServices.h.
|
pure virtual |
Try to convert raster image (RGB) to JPEG or other type.
pRaster | [in] Raster image to be converted. |
type | [in] Image format type to be converted. |
pStreamBuf | [in] Pointer to the StreamBuf object to which the data are to be stored. |
pFlagsChain | [in] Optional zero-terminated saving flag pairs array. |
|
pure virtual |
Try to convert raster image to other type.
pSrcStream | [in] Pointer to the StreamBuf object from which the data are to be converted. |
pDstStream | [in] Pointer to the StreamBuf object to which the data are to be converted. |
type | [in] Image format type to be converted. |
pFlagsChainSrc | [in] Optional zero-terminated loading flag pairs array. |
pFlagsChainDst | [in] Optional zero-terminated saving flag pairs array. |
|
virtual |
Create raster image using user-defined image implementation.
pImp | [in] User-defined raster image implementation. |
Try to detect image format type from input stream.
filename | [in] Filename of the Raster Image file to be checked. |
|
pure virtual |
Try to detect image format type from input stream.
pStreamBuf | [in] Pointer to the StreamBuf object from which the data are to be checked. |
|
pure virtual |
Returns array of supported image format types.
|
virtual |
Checks does image format type is supported.
type | [in] Image format type to be checked. |
|
pure virtual |
Loads the specified Raster Image file.
filename | [in] Filename of the Raster Image file to be read. |
pFlagsChain | [in] Optional zero-terminated loading flag pairs array. |
|
pure virtual |
Loads the specified Raster Image file.
pStreamBuf | [in] Pointer to the StreamBuf object from which the data are to be read. |
pFlagsChain | [in] Optional zero-terminated loading flag pairs array. |
|
pure virtual |
Get image format type by file extension.
extension | [in] File extension. |
|
pure virtual |
Get file extension and filter name by type.
type | [in] Image format type to be formatted. |
psFilterName | [out] Output filter name (can be Null). |
OdRxRasterServices::ODRX_DECLARE_MEMBERS | ( | OdRxRasterServices | ) |
|
pure virtual |
Saves specified Raster Image to the specified file.
rasterImage | [in] Raster image to be saved. |
filename | [in] Filename of the Raster Image file to be written. |
pFlagsChain | [in] Optional zero-terminated saving flag pairs array. |
|
pure virtual |
Saves specified Raster Image to the specified file.
rasterImage | [in] Raster image to be saved. |
filename | [in] Filename of the Raster Image file to be written. |
type | [in] Image format type to be written. |
pFlagsChain | [in] Optional zero-terminated saving flag pairs array. |