FloodFill API

  • 19 years ago

    <b>My Code</b>


    Public Declare Function FloodFill Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long


    <hr>
    sub fldfil (x,y,colr)


    FloodFill Form1.Picture1.hdc, x, y, colr


    end sub


    <hr>
    <b>
    WOTS WRONG?!
    when i call the sub ...
    </b>
    fldfil 10,10,RGB(255,0,0)
    <b>
    nothing happens


    i would guess that it might be somthing with the color...?



    (ZtD)

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.” - Bill Gates