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


IPictureMarkerSymbol.CreateMarkerSymbolFromFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IP > IPictureMarkerSymbol Interface > IPictureMarkerSymbol.CreateMarkerSymbolFromFile Method
ArcGIS Developer Help

IPictureMarkerSymbol.CreateMarkerSymbolFromFile Method

Create symbol from picture file.

[Visual Basic .NET]
Public Sub CreateMarkerSymbolFromFile ( _
    ByVal Type As esriIPictureType, _
    ByVal fileName As String _
)
[C#]
public void CreateMarkerSymbolFromFile (
    esriIPictureType Type,
    string fileName
);
[C++]
HRESULT CreateMarkerSymbolFromFile(
  esriIPictureType Type,
  BSTR fileName
);
[C++]
Parameters
Type [in]

Type is a parameter of type esriIPictureType fileName [in]
fileName is a parameter of type BSTR

Product Availability

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

Description

Loads the specified bitmap image or emf file. Use the esriPictureType enumerator to specify the type of picture being loaded. Supported types are esriIPictureBitmap (bitmap images) and esriIPictureEMF (emf files).

Remarks

Bitmap images are limited to a maxiumum of 256 colors.

See Also

IPictureMarkerSymbol Interface | esriIPictureType Constants

.NET Samples

Dynamic logo