Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, April 24, 2006 8:29:56 AM(UTC)
dsubryan

Groups: Registered
Posts: 15


Hello,

I currently have an image displayed in RasterImageViewer and I have a scrollbar to change the contrast of the image.  The scrollbar changes the contrast of the image when it is scrolled upwards.  But it does not restore the contrast when the scrollbar is moved downwards.  How do I restore the contrast? I am using the following function to change the contrast (found in the help file).

Private Sub ChangeContrastTest(ByVal image As Leadtools.IRasterImage, ByVal intContrast As Integer)

   commandContrast.Contrast = intContrast
   
TextBox1.Text = intContrast
   
commandContrast.Run(image)

End Sub

Regards,
David

 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, April 26, 2006 1:05:52 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello David,

This is normal behavior. Because when you move the scrollbars upwards and raise the contrast of the image, you get a new image with a new contrast value. Then you reduced the contrast with the same amount, you will process the new image (new contrast), not the old image.
However, to adjust the display, use the PaintIntensity, PaintContrast, and PaintGamma properties. These methods affect the display of all images. They are not really part of the image processing group, because they do not affect the image. Nevertheless, these methods can be more useful than the image processing methods when the need for brightness and contrast improvement is device-specific, rather than image-specific.

So, you may change the RasterImage.PaintContrast Property value to control the contrast of the image.

Please try the above instructions and let me know if this helps.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.119 seconds.