Coloring non generic contours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MilenaMika
    New Member
    • Jun 2010
    • 2

    Coloring non generic contours

    Hi,

    I am drawing the picture programmaticall y (since the picture can differ according to run time values of the parameters in my application). I end up with non generic closed contours (which consist of straight lines and curves). Now I need to fill those with different colors. Any idea how can I accomplish this?

    Thanks in advance.

    P.S. I have attached two images. The first one is what I am getting, and the second is how it should look like when colored.
    Attached Files
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    I'm not sure, perhaps someone with more GDI+ knowledge than I have will have an idea, but my suggestion is to use a filled polygon to do the colouring.

    How are you drawing your curves? If you're generating points you should be able to build a mesh and draw it. Oh it also seems that there's a FillClosedCurve method that may help out as well.

    Comment

    Working...