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

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class : ConstructMarkerFromStream Method
The stream representing the image.
Constructs a marker from a stream.
Syntax
public CIMMarker ConstructMarkerFromStream( 
   Stream stream
)
Public Function ConstructMarkerFromStream( _
   ByVal stream As Stream _
) As CIMMarker

Parameters

stream
The stream representing the image.

Return Value

Remarks
Marker can be created from the following stream data type: JPG, BMP, PNG, GIF
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