ArcGIS Pro 2.7 API Reference Guide
ConstructMarkerFromFile Method (SymbolFactory)
Example 

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class : ConstructMarkerFromFile Method
The full path to file on disk.
Constructs a marker from file. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public CIMMarker ConstructMarkerFromFile( 
   string file
)
Public Function ConstructMarkerFromFile( _
   ByVal file As String _
) As CIMMarker

Parameters

file
The full path to file on disk.

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run
Remarks
Marker can be created from the following file formats: JPG, BMP, PNG, GIF, EMF, 3DS, FLT, DAE, OBJ, SVG
Example
//The following file formats can be used to create the marker: DAE, 3DS, FLT, EMF, JPG, PNG, BMP, GIF
CIMMarker markerFromFile = await QueuedTask.Run(() => SymbolFactory.Instance.ConstructMarkerFromFile(@"C:\Temp\fileName.dae"));

CIMPointSymbol pointSymbolFromFile = SymbolFactory.Instance.ConstructPointSymbol(markerFromFile);
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

SymbolFactory Class
SymbolFactory Members