Close

Relief for ODA Team in Ukraine

Learn more
ODA PRC SDK
OdPrcPicture::createByImage Method (const OdString &, OdPrcFileStructure &, bool)
Syntax
C++
static OdPrcPicturePtr createByImage(const OdString & filename, OdPrcFileStructure & fileStructure, bool bPreventDuplicate = true);

Creates a picture basing on a specified raster image. The method adds the created picture in a specified file structure.

Parameters
Description
filename
[in] A string that contains the full path to the origin raster image.
fileStructure
[out] A reference to a file structure where the created picture object should be added.
bPreventDuplicate
[in] A flag that determines whether duplication of pictures is allowed (if it is equal to false) or not (if it is equal to true).

A smart pointer to the created picture object.

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