This project is read-only.

Symbol with 2 colors ?

Oct 7, 2014 at 10:28 AM

I create a red triangle using this code
Dim sf As Shapefile = AxMapCarte.get_Shapefile("test")
Dim utils As Utils = New Utils

If (Not IsNothing(sf)) Then
  sf.DefaultDrawingOptions.PointSize = 12

  sf.DefaultDrawingOptions.FillColor = utils.ColorByName(tkMapColor.Red)
End If
How to add a yellow background color around this triangle to obtain the following result (Image) ?
Oct 7, 2014 at 10:42 AM
Edited Oct 7, 2014 at 10:42 AM

I would use a bitmap, don't know if other solutions are available.

.PointType = MapWinGIS.tkPointSymbolType.ptSymbolPicture
.Picture = <MapWinGIS.Image>
Oct 7, 2014 at 10:51 AM
Thks, but the finally goal is to change the two colors dynamically using "Categories" mecanism.
If I use a bitmap for each color combination, I will have a very important quantity of bitmap files.

Is there an other solution ?
Oct 7, 2014 at 10:55 AM
Edited Oct 7, 2014 at 10:56 AM
Not to my knowledge but I use categories to define 180 positions (ie 180 categories) to rotate symbols (not available for each different feature until 4.9.2) and it works pretty well.
Oct 8, 2014 at 2:10 PM
If you displayed the shapefile twice, one on top of the other, you can control / set the shape and color of each. That may give the desired effect. Repeat the block of code in your example with a yellow circle. The background circle will have to be loaded first to be drawn "under" the triangle.

Just an idea.