API Reference > Classes > PRC Graphical Classes > OdPrcPicture Class > OdPrcPicture Methods > createByImage Method > OdPrcPicture::createByImage Method (OdString &, OdPrcFileStructure &, bool)
OdPrcPicture::createByImage Method (OdString &, OdPrcFileStructure &, bool)
Syntax
C++
static OdPrcPicturePtr createByImage(const OdString & filename, OdPrcFileStructure & fileStructure, bool bPreventDuplicate = true);
Parameters 
Description 
const OdString & filename 
[in] A string that contains the full path to the origin raster image.  
OdPrcFileStructure & fileStructure 
[out] A reference to a file structure where the created picture object should be added.  
bool bPreventDuplicate = true 
[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.

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

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.