API Reference > Classes > PRC Graphical Classes > OdPrcPicture Class > OdPrcPicture Methods > createByImage Method > OdPrcPicture::createByImage Method (OdGiRasterImagePtr &, OdPrcFileStructure &, bool)
OdPrcPicture::createByImage Method (OdGiRasterImagePtr &, OdPrcFileStructure &, bool)
Syntax
C++
static OdPrcPicturePtr createByImage(const OdGiRasterImagePtr & pImage, OdPrcFileStructure & fileStructure, bool bPreventDuplicate = true);
Parameters 
Description 
const OdGiRasterImagePtr & pImage 
[in] A raster image to be used as a base for creating the picture.  
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.