Contrast and brightness for visualComponent

How to set contrast and brightness to the visualComponent.
or is it posible to do that.
thanks for all advices.

You can use the ColorControlAdapter class. You'll find it at package com.sun.media.controls
JMF is poorly documented.. I've found many informations in http://jsourcery.com/output/sun/jmf/2.1.1e/com/sun/media/controls/package-summary.html
ColorControlAdapter.java:
package com.sun.media.controls;
import java.awt.Component;
import javax.media.Control;
// Referenced classes of package com.sun.media.controls:
// AtomicControlAdapter, ColorControl, NumericControl, BooleanControl
public class ColorControlAdapter extends AtomicControlAdapter
implements ColorControl
public ColorControlAdapter(NumericControl b, NumericControl c, NumericControl s, NumericControl h, BooleanControl g, Component comp, boolean def,
Control parent)
super(comp, def, parent);
brightness = b;
contrast = c;
saturation = s;
hue = h;
grayscale = g;
int n = 0;
n += b != null ? 1 : 0;
n += c != null ? 1 : 0;
n += s != null ? 1 : 0;
n += h != null ? 1 : 0;
n += g != null ? 1 : 0;
controls = new Control[n];
n = 0;
if(b != null)
controls[n++] = b;
if(c != null)
controls[n++] = c;
if(s != null)
controls[n++] = s;
if(h != null)
controls[n++] = h;
if(g != null)
controls[n++] = g;
public Control[] getControls()
return controls;
public NumericControl getBrightness()
return brightness;
public NumericControl getContrast()
return contrast;
public NumericControl getSaturation()
return saturation;
public NumericControl getHue()
return hue;
public BooleanControl getGrayscale()
return grayscale;
NumericControl brightness;
NumericControl contrast;
NumericControl saturation;
NumericControl hue;
BooleanControl grayscale;
Control controls[];
I hope that I help someone.. I spend many time until found it..

Similar Messages

  • How to set RAW defaults for Contrast and Brightness?

    When I open a RAW fole in PS Elements 8 the Brightness set to 50 and the contrast set to 25.
    How to set these two values to 0 (zero) as a defaults when a RAW file opened for the first time (defaults).
    Thank you for the help.
    Leo

    I think you can set presets in camera RAW (I'm at work now so I can't tell you the exact method), but setting contrast and brightness to zero gives you an ugly image, and you will most likely move the contrast up and the brightness up, so I'm not sure you are really gaining anything by having a default of 0 contrast and 0 brightness.
    The defaults chosen by Adobe are reasonable.

  • How do I stop camera raw adjusting contrast and brightness automatically when I open any image

    Every time I open in image in camera raw or Photoshop it is applying an automatic contrast and brightness setting. I have tried resetting to defaults with cntrl shft del but it doesn't make a difference. It also when I just flick through thumbnails on bridge. The pics look almost like they have a cartoon like filter on them!!any ideas on how I get it all back to normal it's been great in the past . I use cs3

    Short answer, learn how to use the tool...
    As for the "auto" adjustments, are you sure that's what's happening or are the images changing based on the differences between what the camera preview and the Camera Raw preview look like? If you have indeed somehow turned on the "Auto" adjustment and saved that out as a Camera Raw default, you can go into the Camera Raw flyout menu and choose the option to Reset Camera Raw Defaults. If however you are talking about the inherent differences between the way your camera renders raw and the way Camera Raw renders it, that's an entirely different discussion...
    As for your other question, try rephrasing it as it doesn't mean a thing to me so I have no idea how to answer...

  • Lenovo N500 - how to adjust screen contrast and brightness ?

    I have to use a software to train my eyes and it requires to adjust screen contrast and brightness.
    I see that there are hoy keys in the keyboard to adjust brightness, but how can I adjust contrast ?
    Thank you.

    any icon on your keyboard buttons such as below?

  • Setting Contrast and Brightness while capturing.

    Hi,
    I have see in JMStudio that setting the contrast and the brightness during video capture is possible. For those who don't know how to do:
         -> Open JMStudio...
         -> Capture a video source
         -> Click on the pause button
         -> Menu Player/? (the last available)
         -> A window appears with 2 buttons, this is the right one.
    So. I wonder if someone as done the same work without using JMStudio components and with SWING components ...
    I am only looking for a JPanel with all controls and action implemented.
    If YOU are this guy. Can you copy/paste your java file in the forum.
    Tanks in advance.
    Matthieu

    hmmmm..further to my last posting if you are still around...how?

  • Contrast and brightness info

    Hi,
    I want to find out the Contrast Ratio and Brightness specs for as much macs as i can.
    For displays you can easily find the specs but not for any other mac.
    Is there a website or something where i can find this information ?
    Thanks.

    Specifications can be found at support.apple.com/specs/. But Apple does not generally provide contrast ratio information for Macs with built-in monitors.

  • How do I stop camera raw automatically applying contrast and brightness when I load an image?

    Everytime I load an image in photoshop or camera raw from bridge it automatically applies 50% brightness and 25% contrast and 5% black fill. It's ruining the pictures. I have already tried resetting photoshop and bridge to their default settings using cntrl, shift, delete. Any ideas?
    thanks

    I think you have posted your question in the wrong forum. This is the Acorbat Windows forum and not one of the image processing forums. Acrobat does not use the ACR plugin.

  • Image contrast and brightness

    Hi i'm a newbie to java. i want to laod a image on swing and want to adjust its brightness and contrast. How can i do this ?

    See
    http://www.jhlabs.com/ip/coloring.html#hsb
    The code for the filters used can be downloaded
    http://www.jhlabs.com/ip/download.html
    I think this should answer your question

  • FX5200 help setting contrast and brightness

    I have a FX5200 VTD128 and i want to connect mi PS2 to it, but everytime y play the image is too dark, my monitor is set to max brightness and contrast, also the program 3D! turbo experience is set to max, but i still see the image too dark. Please help with this issue.

    did u try setting sp2 to progressive scan output

  • Poor Video Contrast and Brightness

    Video display is dark and often difficult to see. I tried the five Rs approach, but still have the same problem. Any ideas
    No problem with audio. Software is up to date.
    30 GB video ipod unit.

    I have a video that is too dark. My video controls have no effect on on the Sony camera mpg file. The movie plays but is too dark. Is there a way to get at least the brightness control to work?

  • Screen flickers between dim and bright when on battery

    Hi - I've had my S10 for about a month now and overall am quite pleased with it.
    One annoyance I've come across is that when I am on battery (IE no AC plugged in) the screen sometimes flickers between dim (what it should be) and bright for about a second and dims down again. It will do that ever 4-5 mins or so.
    It seems as if the power management on the computer is a little on the fritz and can't decide if it's on be dim because it's on battery or if it should be bright because it's on AC
    Anyone else experience this?

    Im sure everyone experienced this with their S10's ... I would say it's normal because it changes power management to a lower grade... anyway I would say it's a sort of "hello... need attention" that your s10 is saying to you... It normally ocurs when your battery is low and you need to plug the cord cause it's running out of battery...
    Lenovo S10 - 6cell - 2GB RAM, since March 1st 2009 and still loving it...!!!

  • When I open a video which I have altered the AV settings on in another program, the settings revert to the initial settings.  Can I edit the color and brightness settings permanently in Quicktime 7?

    I need to change the color and brightness for a video file for a presentation and cannot figure out how to change them permanently when I open the video file in Powerpoint.  Any suggestions?

    The A/V Controls window settings revert when the window is closed.
    You would need the "Pro" upgrade to QuickTime Player and then use the Export dialog / Filters button to make a new version of the file.

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • Contrast, Saturation and Brightness settings for L...

    I wanted to know how to change the contrast, saturation and brightness of the images from the built in camera app on Lumia 620. The app doesn't have the option to,change these settings... I was previously using a WP7 which,had these features, but they don't exist in the Lumia 620. So,is there a work around for these? Or is there a way to access these features, as the images come out very dull.

    Can I change a Video object to to Camera object, If yes, How do??
    nsOutGoing.attachCamera(video as Camera);// it does not work rightly
    thanks

  • How to Change Brightness, Contrast and Saturation of an image in LabWindows/CVI (Urgent) ?

    Hi All
    I want to change brightness, contrast and saturation of an image, plz help me how it will possibe in labwindows/cvi
    Thanks

    CVI does not include native functions to operate such changements on an image.
    It may be possible that these functions are included in IMAQ library, but I never used ot so I'm not sure. In any case, this is an additional tool to install and it is not free.
    Alternatively, you may need to search for a third party library that offers such functions.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for

  • Upgraded to Acrobat X and signature field stop working

    Upgraded to Acrobat X and IntegriSign signature field stop working.  When I open the pdf and click on the signature field I get a "This plug-in is intended for validating signatures signed using earlier versions of Acrobat.  To sign using this versio

  • Save as picture

    Power Point for the PC has a feature that allows you to highlight an object (a croped picture, chart, etc.) right click and Save it as a Picture in many formats (jpeg etc.). Does that feature exist in the Adobe Acrobat 8 Professional? If it does ---

  • Java dis-abled in Safari preferences:  Keep it that way?

    Will I ever need to enable Java in Safari perferences?  Will it be safe if I do?  ( I do have all the current updates.)

  • TextArea component & external css

    hello, i have searched but not found an answer... i can style the text with an internal style sheet (within the flash file), but i wonder if this can be done on a textArea from an external CSS? thank you.

  • Error 1714. Error 1603. could not upgrade itunes

    when i tried upgrading to iTunes 6, i got the following errorr. Error 1714: Older version could not be uninstalled. Then i got another, Error 1603, saying itunes.msi was not found or something like that. what must be done? I use a iPod Shuffle.