Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
TD_HOOPS_COMMON_EXPORT::InsertHoopsImage Function
Syntax
C++
bool InsertHoopsImage(OdGiRasterImagePtr pImage, OdString strImageName, bool bSetRealSize = false, bool bForseBGR = false);

Inserts a raster image in a hoops image segment. 

 

Parameters
Description
pImage
[in] A smart pointer to an OdGiRasterImage object to be inserted.
strImageName
[in] An inserted image name in a hoops file. [in] An image name in a hoops file.
bSetRealSize
[in] A flag value that determines whether the image keeps its size in the hoops file (if true) or not (if false).
bForseBGR
[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.

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

File: HoopsCommon.h 

Namespace: TD_HOOPS_COMMON_EXPORT 

Module: API Reference 

Copyright © 2002-2022. Open Design Alliance All rights reserved.