Share

AcDbRasterImageDef::setSourceFileName

C++

virtual Acad::ErrorStatus setSourceFileName(
    const ACHAR * pPathName
);

Description

This function sets the pathname of the externally referenced image file. If the image was previously embedded (see AcDbRasterImageDef::embed), a call to this function removes the embedded image file from the current drawing. The image file path name is stored when the current drawing is next saved. The image definition is initialized and a file descriptor is created for access to the image file.

This function determines the actual file path (active file name) used for the current image definition is determined by a call to AcDbRasterImageDef::searchForActivePath().

Returns Acad::eOk if successful.

Parameters

Parameters Description
pPathName Input path name of the image

Links

AcDbRasterImageDef

Was this information helpful?