How to program to create a Picture Stroke renderer like ArcGIS pro

413
3
Jump to solution
07-27-2020 10:45 PM
EricJing
New Contributor III

I want to create renderer to fill the lines like what ArcGIS pro does in the picture below(Picture stroke). 

Is it possible? I could not find example code for it. Can someone help please....

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
EricJing
New Contributor III

I found a way to make it. I am not sure if this the proper way..


SimpleRenderer r0 = new SimpleRenderer();

PictureMarkerSymbolLayer symbolLayer = new PictureMarkerSymbolLayer(picture);

MultilayerPolylineSymbol symbol = new MultilayerPolylineSymbol(new[] { symbolLayer })
{
Width = 10d,
};

r0.Symbol = symbol;

View solution in original post

3 Replies
EricJing
New Contributor III

I found a way to make it. I am not sure if this the proper way..


SimpleRenderer r0 = new SimpleRenderer();

PictureMarkerSymbolLayer symbolLayer = new PictureMarkerSymbolLayer(picture);

MultilayerPolylineSymbol symbol = new MultilayerPolylineSymbol(new[] { symbolLayer })
{
Width = 10d,
};

r0.Symbol = symbol;

View solution in original post

PreetiMaske
Esri Contributor

That is the right way.

EricJing
New Contributor III

Thanks for confirmation..

0 Kudos