pls help
-
Heyy, I want to alter an image. jus need to change color of some pixels in an image. What i m doing is this: FileStream f = new FileStream("d:\\puzzlesolver\\puzzle\\piece" + i.ToString() + ".jpg", FileMode.Open, FileAccess.ReadWrite); Bitmap bmp = new Bitmap(f); f.Close(); bmp.SetPixel(n, j, Color.IndianRed); [note]: n,j are within the cordinates of the image. but after running the code successfully m not able to change the color of the pixels...What am i doing wrong here?? pls help....
-
Heyy, I want to alter an image. jus need to change color of some pixels in an image. What i m doing is this: FileStream f = new FileStream("d:\\puzzlesolver\\puzzle\\piece" + i.ToString() + ".jpg", FileMode.Open, FileAccess.ReadWrite); Bitmap bmp = new Bitmap(f); f.Close(); bmp.SetPixel(n, j, Color.IndianRed); [note]: n,j are within the cordinates of the image. but after running the code successfully m not able to change the color of the pixels...What am i doing wrong here?? pls help....
There's nothing obviously wrong with the code. How are you determining that the pixels don't get set??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008