API Reference > OdRx Classes > OdRxRasterServices Class > OdRxRasterServices Methods > convertRasterImage Method > OdRxRasterServices::convertRasterImage Method (OdGiRasterImage*, OdUInt32, OdStreamBuf*, OdUInt32 *)
OdRxRasterServices::convertRasterImage Method (OdGiRasterImage*, OdUInt32, OdStreamBuf*, OdUInt32 *)
Syntax
C++
virtual bool convertRasterImage(const OdGiRasterImage* pRaster, OdUInt32 type, OdStreamBuf* pStreamBuf, const OdUInt32 * pFlagsChain = NULL) = 0;
Parameters 
Description 
const OdGiRasterImage* pRaster 
[in] Raster image to be converted.  
OdUInt32 type 
[in] Image format type to be converted.  
OdStreamBuf* pStreamBuf 
[in] Pointer to the StreamBuf object to which the data are to be stored.  
const OdUInt32 * pFlagsChain = NULL 
[in] Optional zero-terminated saving flag pairs array. 

Try to convert raster image (RGB) to JPEG or other type.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.