leptictidium
09-21-2009, 02:48 PM
I have a picture. I need a sub to replace a certain color at a certain coordinate with another color. This is just like the paint-bucket tool in any photo editing application. This is the code I need:
Private Sub PaintBucketTool (StartColor, Location, EndColor)
End Sub
For example, if the start color is white, and the location is some spot on the picture, and the end color is pink, then I need the sub to change all the pixels at the specified location that have the RGB values of (255,255,255) or (244,244,244) to black pixels. Wow.....by the time I finished typing this I thought of a way to fix it...sometimes just typing things out helps you to think! Lol. I'm not sure how to delete this post soo..... bye!
Private Sub PaintBucketTool (StartColor, Location, EndColor)
End Sub
For example, if the start color is white, and the location is some spot on the picture, and the end color is pink, then I need the sub to change all the pixels at the specified location that have the RGB values of (255,255,255) or (244,244,244) to black pixels. Wow.....by the time I finished typing this I thought of a way to fix it...sometimes just typing things out helps you to think! Lol. I'm not sure how to delete this post soo..... bye!