View Single Post
  #8 (permalink)  
Old July 7th, 2005, 09:51 AM
katsarosj katsarosj is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts

Well, I can't really help you with the error, but as I stated before, there is already a FillPath method that could probably achieve what you want (with a little investigation). Here is an example:

        Dim path As New GraphicsPath
        path.AddArc(100, 100, 200, 150, 195, 150)
        e.Graphics.FillPath(Brushes.Blue, path)
        e.Graphics.DrawPath(Pens.Black, path)

This creates a semi-circle at the specified points and then fills that in with a blue color fill. This is placed in the forms Paint event and you will have to import System.Drawing.Drawing2D. You can add additional arcs, lines, etc. if your sine wave jumps around prior to drawing it.

Sorry, this about all I can help you with.

Reply With Quote