Re: [2005] graphics question
I'm not sure what you mean by "floodfill". Can you elaborate on what you are actually trying to do?
Re: [2005] graphics question
i'm trying to change a region of same colored pixels to a different color
Re: [2005] graphics question
Is your region restricted by a certain perimeter or does it apply to an entire bitmap..... or both?
Re: [2005] graphics question
its a paint program.
the region could be any shape, part or complete bitmap.
Re: [2005] graphics question
Either way, it is going to have to loop through all of the pixels in the region. If you want to speed it up a little, consolidate your code into a single method. You're losing speed by leaving the loop to process another method. Also, avoid creating variables for data that you already have, whenever possible.