Search results for query: *

  • Users: perps
  • Order by date
  1. P

    Help with flood fill algorithm.

    *bump* I've also tried creating a recursive sub that is called when the user hits a button with; Dim xCord As Int32 = e.X Dim yCord As Int32 = e.Y floodFill4(xCord, yCord) And then the sub itself; ' Flood fill algorithm. Does not work properly...
  2. P

    Custom cursors not visible - any ideas??

    Hey Kulrom, thanks once again for helping me. Here's the code... Private Sub picMain_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picMain.MouseMove SetCursor() . . . Private Sub SetCursor() Select Case drawMode...
  3. P

    Custom cursors not visible - any ideas??

    Greetings to all. I'm building a MSPaint style simple paint program, and i'm trying to implement custom cursors for the different drawing modes (line, square, fill etc). Problem is, any custom cursor i create and then assign for a particular control (in this case a picture box, which is...
  4. P

    Help with flood fill algorithm.

    Greetings to all. Can anyone help me with regards to implementing a flood fill algorithm? My code thus far is below, I keep getting an invalid parameter used error as soon as the algorithm approaches the bottom boundary of the shape I wish to fill (i've stepped it through and discovered this)...
  5. P

    Real-time drawing.

    Thanks for the reply Kulrom. I tried moving the code in question to be called to draw under mouse move instead of mouse up. Unfortunately, this just causes a 'fan' or 'wagon wheel' type effect, where lines are continually drawn around the first point while the left mouse button is held down and...
  6. P

    Real-time drawing.

    Greetings to all. I've been working on a simple paint application (ala MS Paint) that can draw lines, rectangle, ellipses etc but I have a problem in that none of it is drawn on the canvas in real-time (i.e. If the user was dragging out a rectangle, they would only see the shape drawn on the...
  7. P

    Defining relative paths to files for a project...

    Nice! Thanks for the help jmcilhinney. :D
  8. P

    Defining relative paths to files for a project...

    Greetings all, I'm currently working on a project where i have created some custom images for use as buttons. I have created one button to serve to indicate that a button is unselected, and another image of a different colour to be used when the user clicks the button to indicate that it is...
  9. P

    Resizing a form and preserving the placement of controls within it...

    Greetings, I have created a simple paint application somewhat similar to MSPaint, and I was wondering how to go about handling the resizing of the form. How do you preserve the positioning of controls within a form, and the size of controls in ratio to the form itself?? My application has a...
  10. P

    How to draw the points continues?

    You need to create an integer that takes the value of the slider/track bar and then uses it as the pen's width when you are drawing your ellipse. I don't think it's necessarry to create a sub specifically to handle this, you can just call the value of the slider/track bar whenever you want to...
  11. P

    Drawing curves using points captured by mouse clicks...

    Nice one!! Thanks kulrom. I played round with your code a bit and it works beautifully!!
  12. P

    Drawing curves using points captured by mouse clicks...

    Hey BadgerByte, Thanks for the reply. You're right, I do have curveCount declared as a class wide variable. I also tried using the drawCurve method you posted, unfortunately it yielded the same result. What you mentioned with regard to all other entries being (0, 0) might be the problem...
  13. P

    Drawing curves using points captured by mouse clicks...

    Greetings, Just discovered this forum, appears to be quite the resource indeed!! I was wondering if anyone could shed some light on a problem i'm having. I've set up a points array to capture mouse co-ordinates for use in drawing a curve to the canvas. It's working OK, except for the fact...
Back
Top