That makes sense. Yea, I am applying the new user settings to the
"already adjusted" image, when I should be going back to the original
each time.
I'll try it when I get in the office. Thanks.
Bob Powell [MVP] wrote:[color=blue]
> I guess the reason is because you're altering the original image, not[/color]
a copy[color=blue]
> of it.
>
> You need to copy the original to the new setting every time, don't[/color]
change an[color=blue]
> image and then try to adjust *its* contrast / brightness later. It's[/color]
a[color=blue]
> classic degradation problem.
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
>
http://www.bobpowell.net/tipstricks.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
>
http://www.bobpowell.net/faqmain.htm
>
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> <marfi95@yahoo.com> wrote in message
> news:1105025165.721698.243520@z14g2000cwz.googlegr oups.com...[color=green]
> > Thanks Bob.
> >
> > I took your example of adjusting the contrast (the one with
> > ImageContrast as the namespace) and ran against one of my test[/color][/color]
images.[color=blue][color=green]
> > The problem was the image was able to get darker, but never got any
> > lighter (even when moving the trackbar all the way over). Let me
> > explain what I'm doing. The images we display are coming out of a
> > check scanner for our customers. We allow them to rescan them at
> > lighter/darker contrast values, but that forces them to go through[/color][/color]
the[color=blue][color=green]
> > scanner again which is not a real fast device. So what I wanted to[/color][/color]
do[color=blue][color=green]
> > is let them adjust the original image directly on the screen[/color][/color]
through[color=blue][color=green]
> > the use of a trackbar and not require them to go through the[/color][/color]
scanner[color=blue][color=green]
> > again.
> >
> > The images are coming out of the scanner in a 1bpp indexed pixel[/color][/color]
format[color=blue][color=green]
> > - black/white ?
> >
> > Any ideas why it wouldn't get any darker. Is there a better way to[/color][/color]
do[color=blue][color=green]
> > it.
> >
> > Many thanks.
> >[/color][/color]