API Reference > Extension Classes > ExServices Classes > ExRasterModule Class > ExRasterModule Methods > convertRasterImage Method > ExRasterModule::convertRasterImage Method (OdGiRasterImage*, OdUInt32, OdStreamBuf*, OdUInt32 *)
ExRasterModule::convertRasterImage Method (OdGiRasterImage*, OdUInt32, OdStreamBuf*, OdUInt32 *)
Syntax
C++
bool convertRasterImage(const OdGiRasterImage* pRaster, OdUInt32 type, OdStreamBuf* pStreamBuf, const OdUInt32 * pFlagsChain = NULL);
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.