Hi all

i'm trying to change the value of red,green and blue in a bitmap pic
for now this method doesnt work
                        for(int x=0;x<myImage.Width;x++)
                                for(int y=0;y<myImage.Height;y++)
                                {
                                        Color oldPixelColor = 
myImage.GetPixel(x,y);
                                        Color newPixelColor = 
Color.FromArgb(TR.Value -
oldPixelColor.R  ,TG.Value - oldPixelColor.G  ,TB.Value -
oldPixelColor.B );
                                        myImage.SetPixel(x,y,newPixelColor);
                                }
                        this.ClientSize = new 
Size(myImage.Width,myImage.Height);

Reply via email to