Playing with pictures

02-17-2005, 10:38 PM

I'd like to know if it's possible to modify a picture's color in Visual Basic? I have a picture composed of 3 lines; 1 blue, 1 green and 1 red. I'd like to transform the red into black; is it doable? If so, please refer me to some documentation, or show me some code samples of it; if not, well... everything is possible, no? :D

02-17-2005, 11:03 PM
The documentation should have come with Visual Basic.
The simplest, but not fastest, would be to loop through the picture's pixels and
use the Point functioin to read the color of the pixel, and when you find a red one,
then use Pset to set the pixel to Black.

02-17-2005, 11:34 PM
Thanks, this helps alot :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum