ArcGIS Pro 2.6 API Reference Guide
ConstructMarkerFromBitmapSource Method (SymbolFactory)
Example 

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class : ConstructMarkerFromBitmapSource Method
The bitmapSource representing the image.
Constructs a marker from a bitmap source.
Syntax
public CIMMarker ConstructMarkerFromBitmapSource( 
   BitmapSource bitmapSource
)
Public Function ConstructMarkerFromBitmapSource( _
   ByVal bitmapSource As BitmapSource _
) As CIMMarker

Parameters

bitmapSource
The bitmapSource representing the image.

Return Value

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, Windows 7

See Also

Reference

SymbolFactory Class
SymbolFactory Members