Symbol with 2 colors ?

Oct 7, 2014 at 9:28 AM
Hi,

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.SetDefaultPointSymbol(3)
  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 9:42 AM
Edited Oct 7, 2014 at 9:42 AM
Hi,

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


.PointType = MapWinGIS.tkPointSymbolType.ptSymbolPicture
.Picture = <MapWinGIS.Image>
Oct 7, 2014 at 9: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 9:55 AM
Edited Oct 7, 2014 at 9: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 1: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.