This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IP > IPictureElement Interface > IPictureElement.ImportPictureFromFile Method (ArcObjects .NET 10.5 SDK) |
File to be imported.
[Visual Basic .NET] Public Sub ImportPictureFromFile ( _ ByVal Name As String _ )
[C#] public void ImportPictureFromFile ( string Name );
[C++]
HRESULT ImportPictureFromFile(
BSTR Name
);
[C++]
Parameters Name [in] Name is a parameter of type BSTR
ImportPictureFromFile allows for updating the PictureElement based on a file of the proper format. The Filter property is used to screen the files being loaded through ImportPictureFromFile to make sure they are of the correct type. The Filter property is based on the picture element object being manipulated (either a BmpPictureElement or an EmfPictureElement).