This project is read-only.

DrawPolygonEx broader line colour

Aug 15, 2014 at 2:53 PM
When draw a custom polygon, we can only specify one colour and that is used in both the filling colour and the broader line colour.

However, for a polygon shapefile, we can specify a different boarder colour for the line.

If that possible to use two different colours when draw a custom polygon without an additional function call?

Nov 28, 2014 at 7:54 AM
How are you drawing the polygon? As a new shape of a shapefile or on a drawing layer?


Nov 28, 2014 at 1:53 PM
thanks, Paul,
I am drawing polygons on a drawing layer: Map.NewDrawing() and Map.DrawPolygonEx()

Nov 30, 2014 at 12:56 PM
The drawing layer process does't include the categories class, so it is more complicated to create polygons with different styles.

You can also create an in-memory shapefile, just pass "" as filename, and add the new polygons to that file. This file can have categories so it will me much easier to give the polygons different styles based on attributes.

Will this work for you?

Dec 3, 2014 at 1:22 PM
Thanks for the workaround. Unfortunately I cannot use this approach. However, this is not a mandatory feature so I can live with one colour.

Marked as answer by pmeems on 12/3/2014 at 6:06 AM