Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

Last post 08 Apr 2008, 4:08 PM by Elaine. 6 replies.
Sort Posts: Previous Next
  •  08 Apr 2008, 11:19 AM 13654

    Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

    Is there a way that I can set brightness and contrast using the WebImageViewer.  I have looked at the ApplyCommand, but it does not jump out what the command is.  I have tried searching both on-line help and the PDF document for developers and the two words Brightness and Contrast seems missing.

    Any help or guidance is appreciated.

    Bjarne Winkler

    Filed under: ,
  •  08 Apr 2008, 11:32 AM 13655 in reply to 13654

    Re: Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

    Greetings, Bjarne --

     There is a BrightnessContrastCommand (that's the name of it) that you will want.  Once you set it like this:

    BrightnessContrastCommand cmd = new BrightnessContrastCommand(Brightness, Contrast);

    you can then call it with the WebImageViewer like this:

    WebImageViewer.ApplyCommand(cmd);
     


    Elaine McNealy
    Developer Support Supervisor
    Atalasoft, Inc.
  •  08 Apr 2008, 12:10 PM 13656 in reply to 13655

    Re: Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

    Elaine,

    Thanks for your response. This is good news; I will explore and then report back to the Forum.

    Bjarne Winkler.

     

    Filed under:
  •  08 Apr 2008, 12:28 PM 13657 in reply to 13654

    Re: Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

    The WebImageViewer's ApplyCommand is for any ImageCommand to be applied to the containing image.  So, if you have an image loaded into the WebImageViewer, and you want to apply a command that changes the brightness and contrast, you would use something like this:

       BrightnessContrastCommand bcc = new BrightnessContrastCommand(...);
       WebImageViewer1.ApplyCommand(bcc);

    I have to admit that I am very surprised the words brightness and/or contrast do not come up when searching through the help... there are at least three ImageCommands in the Atalasoft.Imaging.ImageProcessing.Effects namespace:

    http://www.atalasoft.com/products/dotimage/docs/Atalasoft.dotImage~Atalasoft.Imaging.ImageProcessing.Effects_namespace.html


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
  •  08 Apr 2008, 12:39 PM 13658 in reply to 13656

    Re: Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

    Elaine,

    Yes the BrightnessContrastCommand does work, but I am still missing some documentation regarding this command.  I cannot find it in the AtalaSoft DotImage 6.0 Developer’s Guide; however I did find it in the Help AtalaSoft DotImage 6.0 File. 

    Again thanks for the help.

    Bjarne Winkler

  •  08 Apr 2008, 1:11 PM 13659 in reply to 13658

    Re: Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

    Guys,

     In the hope this helps you and others.  I was not able to find BrightnessContrastCommand on the on-line help at http://www.atalasoft.com/products/dotimage/docs/

    Bjarne Winkler

  •  08 Apr 2008, 4:08 PM 13660 in reply to 13659

    Re: Brightness and Contrast setting when displaying JPEG images using the WebImageViewer.

    Try:

    http://www.atalasoft.com/products/dotimage/docs/Atalasoft.dotImage~Atalasoft.Imaging.ImageProcessing.Effects.BrightnessContrastCommand.html

    It did not come up in a search, but it is there in the index. 


    Elaine McNealy
    Developer Support Supervisor
    Atalasoft, Inc.
View as RSS news feed in XML