This document is archived and information here might be outdated.  Recommended version.


IPictureElement.ImportPictureFromFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IP > IPictureElement Interface > IPictureElement.ImportPictureFromFile Method
ArcGIS Developer Help

IPictureElement.ImportPictureFromFile Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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).

See Also

IPictureElement Interface