API Reference > OdExport Classes > TD_HOOPS_COMMON_EXPORT Namespace > Functions > TD_HOOPS_COMMON_EXPORT::InsertHoopsImage Function
TD_HOOPS_COMMON_EXPORT::InsertHoopsImage Function
Syntax
C++
bool InsertHoopsImage(OdGiRasterImagePtr pImage, OdString strImageName, bool bSetRealSize = false, bool bForseBGR = false);

HoopsCommon.h

Parameters 
Description 
OdGiRasterImagePtr pImage 
[in] A smart pointer to an OdGiRasterImage object to be inserted.  
OdString strImageName 
[in] An inserted image name in a hoops file. [in] An image name in a hoops file.  
bool bSetRealSize = false 
[in] A flag value that determines whether the image keeps its size in the hoops file (if true) or not (if false).  
bool bForseBGR = false 
[in] A flag value that determines whether the BGR pixel format for the image is kept after adding the image to a hoops file.
 

Returns true if an image has been successfully inserted, otherwise returns false.

Inserts a raster image in a hoops image segment. 

 

The value of the bForseBGR parameter is ignored if the pImage object already has the BGR or BGRA pixel format.

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