Help!!! How do I get the bit color depth the user has his screen set to?

Help!!! How do I get the bit color depth the user has his screen set to?
Thank you.

i'm not sure if it's what you 're looking for but it worked for me:
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
for(int i=0;i<gs.length;i++){ //length is 1 (= i have only one screen? )
GraphicsDevice g=gs[ i ];
int nBits=g.getDisplayMode().getBitDepth(); //method getDisplayMode() only in jdk1.4 , i think
System.out.println( nBits+"");
output is 32 if i set my screen color to 32bits, 24 if...24, ...

Similar Messages

  • Help, how do I get iPad Photos to sort the way I want?

    I'm at wits end!
    After a week of constant sync/re-sync/re-name-stripping out all EXIF data, I'm still at the mercy of some random sort order for some of my photos.
    I have read: http://support.apple.com/kb/HT4221 - which seems to indicate that it reads the EXIF data first. I have stripped all EXIF data from all my photos in hopes that it will resort to alphabetical order of the file-names. But it doesn't seem to do so - it seems to still rely on last modified date of the file itself. Short of copying individually hundreds of photos over in the order that I want - I don't know what to do. Additionally, through trial and error, it seems that it doesn't recognize differences in timestamp in the seconds, only minutes - ARGH!! Is anyone else having such a hard time to get the iPad to sort the photos by filename in an order that I specify?
    I am not on Mac and cannot use iPhoto to sort, so I am on the PC side and order my photos using ACDSee and batch rename them so that they are alphabetically correct.
    Please, its essential that they are grouped in my order, but I can't for the last week coax my iPad to display in alphabetical filename order (it seems simple enough?!) I'm so frustrated!!
    Please help.

    I do not understand what you mean by a problem with downsizing large image, the images I have dragged over are exactly the same size as on my home computer, I can see it may cause the IPad problems if you are trying to transfer 50 mb tiff files or something similar, it really is not designed for that type of image.
    My workflow is as follows, I work up my raw files and save a copy as a tiff for printed output, for web or iPad use I make an approx 2 Mb jpeg file.
    I make a folder with an appropriate title, insert the required images, the images are sorted either by the original camera file numbering or if I want items in a particular order I will start a number 1 and continue, Airsharing will respect your ordering sequence, so number 1 will always be number 1.
    As a viewer Air Sharing in my opinion is better than the photo app because it leaves your images in the order you have set, to view an image you open the folder click on number 1 or whatever is your 1st image, that
    opens full screen, you have the choice of moving through the folder singly by clicking the arrow head at the bottom right/left of the screen or a slide show by clicking the centre arrow head, you set the time on screen etc.
    If you put the same selection of images on the iPad via the Photo app it would number your images in a way you have little control over and will even optimise your image even if you do not want it to !
    The Airsharing library is seperate from the photo library, you can move images to the photo library but why would you want to do that ? All your image sorting is done on your computer prior to the transfer, surely you do not want an app making decisions on you behalf ?
    To me it is a perfect portfolio app because I make all the decisions about file size, sequence of images how I want to display them, singly or as a slideshow I am in control not Apple.

  • Help, How do i get objects to move with the click of a mouse button?

    I am developing a game where by an object can move around the screen by either using the keyboard or the mouse. I have figured out how to control the object using the keyboard. But the mouse control is proving difficult. Can anyone give me some suggestions on how to tackle this?

    This is better !:
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    public class MoveO extends Frame implements MouseListener
         Label obj = new Label("@");
    public MoveO()
         setBackground(Color.pink);
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         setLayout(null);
         add(obj);
         obj.setBounds(110,130,20,20);
         obj.setBackground(Color.red);
           setBounds(1,1,600,460);
         setVisible(true);
         addMouseListener(this);
    public void mouseEntered(MouseEvent m){}
    public void mouseExited(MouseEvent m) {}
    public void mouseClicked(MouseEvent m){}
    public void mousePressed(MouseEvent m){}
    public void mouseReleased(MouseEvent m)
         move2(m.getPoint());
    private void move2(Point mto)
         Point ofr = obj.getLocation();
         Line2D.Double line = new Line2D.Double(ofr.x,ofr.y,mto.x,mto.y);
         Rectangle2D.Double r = new Rectangle2D.Double();
         r.setRect(line.getBounds2D());
         if (mto.x >= ofr.x) 
              for (double x=0; x <= r.width; x++)
                   for (double y=0; y <= r.height; y++)
                        if (line.ptSegDist(r.x+x,r.y+y) < 0.25)          
                             obj.setLocation((int)(r.x+x),(int)(r.y+y));
         else
              for (double x=r.width; x >= 0; x--)
                   for (double y=r.height; y >= 0; y--)
                        if (line.ptSegDist(r.x+x,r.y+y) < 0.25)          
                             obj.setLocation((int)(r.x+x),(int)(r.y+y));                
    public static void main (String[] args) 
         new MoveO();
    }Noah

  • How do I get rid of "Your Free Trial Period has ended" Screen when trying to open pdf in the Reader

    Hi
    How do I get rid of the "Your Free Trial Period has ended"  Screen when trying to open a pdf in Adobe Reader?
    I had a trial of Dreamweaver but it was too complicated for me.
    There was no where to cancell the free trail so I let it run its course and expire.  It then deleted the programs which is fine (I didn't want to buy them) but it also deleted my Acrobat Reader.
    I have re-installed that but when I try to open a pdf, all I get is the "Your Free Trial Period has ended" screen which only allows you to buy or exit and them exits all together.
    Needless to say I am very UNIPRESEED with Adobe for messing up my programs and now they want to charge me $29 dollars to sort out a problem they created.
    Can anyone help me to sort out this very anoying problem?
    Regards
    David

    Hi
    Thank you for the reply.
    No I have not deleted anything, this all happened automatically when the trial period ended.
    Other than an old version of Photoshop (version 7, for which I do have a serial number, I don't have any other Adobe software - just the reader which is now not working)
    I was trialling Dreamwever but couldn't get started with it so am paying someone else to set up the website using Wordpress.
    David

  • 32 bit color depth support

    I'm operating from a Samsung Galaxy Tab 7.7, which natively supports 32-bit color depth. Is photoshop touch rendering at this level? or is it 16-24 bit color. not sure i could tell without comparing two images from actual screens.
    basically from what i gather, the answer is at that photoshop touch, in its ability to render psd, jpg and png is at least using a color space providing 24 or 30 bit color depth. the device's color space is capable of rendering 32 bit color depth.

    David,
    My web site address is:
    http://www.geocities.com/gzou999/index.html
    There is no login needed.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Trying to download iTunes 64-bit version on my new Windows 7 PC. Getting the error 'could not locate "%APPDATA%". How do I get past this error? The software doesn't install.

    Trying to download iTunes 64-bit version on my new Windows 7 PC. Getting the error 'could not locate "%APPDATA%". How do I get past this error? The software doesn't install. Appreciate if someone in the forum can help.

    The backup and restore from the iCloud was a little unnerving since the restore erased all information from the iPod.  The iCloud backup and restore took a long time, but worked.  I was very grateful.
    Trying again to backup to iTunes locally proved to be the same challenging problem.  The same backup to corrupt file was the message.  The status bar showing backup seemed to move faster to start, but then slowed to a creep toward the end before the error. 
    When trying to restore a backup in iTunes, the "Restore" button is grayed out since it is looking for a local copy.  Any restore would need to be from the iCloud which already worked but isn't the final solution.
    Your suggestions were good, I am just in the same boat.  Any thoughts about doing the following?
    1) creating a cloud backup
    2) resetting the iPod to factory defaults
    3) removing all traces of iTunes from my computer and
    4) installing iTunes and setting up iPod from scratch.
    This is the next thing on my list.

  • Been sat here for the past 5 hours trying to figure out why itunes wont download, it says error and something to do with Microsoft? Help me please.. getting a bit bored?

    been sat here for the past 5 hours trying to figure out why itunes wont download, it says error and something to do with Microsoft version? Help me please.. getting a bit bored?

    i have this problem too
    my dad thinks its because itunes is getting overloaded

  • How do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    how do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    You can add a solid color theme to change the color of the top of the browser window, which includes the Menu Bar.
    https://addons.mozilla.org/en-US/firefox/themes/solid

  • HT201302 Hi People! please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other plac

    Hi People!
    Please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other place.

    Hi Alan,
    Thanks for the help, but i've actually done that before.
    It does not help, because it only shows the photos on the camera roll and do not show the photos synchronized with that pc that i dont have access anymore.
    The photos/albums all appear on the ipad, i can see it without problems but i cant get them out of the ipad to save onto pc for backup.
    And i reaaly need it, as it is the only place that i actually have these photos now...

  • I have lost the bar at the top of the screen , tools, edit, view, history, bookmarks, tools, help, how do i get it back ,

    hi, i have lost the bar at the top of the screen, which has file, edit, view, history, bookmarks, tools, help, how do i get it back please, will br gratefull fo any answers.

    Hit the '''Alt''' key ''(Cmd for Mac)'' to show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark.

  • How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    Try asking at ifixit.com. The iPhone is not considered user servicable. You're not going to get much help on an Apple sponsored forum.

  • How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?

    How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?
    Thank you.

    dadanas wrote:
    Hi Simcah, I have a similar problem. Have you found out any solution?
    thanks, dan
    You need to ask the printing service provider. Dealing with color totally depends on the printing process involved and of course the machines used.

  • I am having an with the dictation feature in OSX Mountain Lion.  I got Dictation enabled but when I got to use the feature all I get is the circles that cycle the purple color, shakes the the box disappears please help.

    I am having an with the dictation feature in OSX Mountain Lion.  I got Dictation enabled but when I got to use the feature all I get is the circles that cycle the purple color, shakes the the box disappears please help.

    See the discussions under "More Like This" at right.

  • The new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    gorxxx83 wrote:
    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?
    Downgrading is not supported.
    Here are some basic troubloeshooting tips:
    - Quit the App by opening multi-tasking bar, and swiping the App upward to make it disappear.  (For iOS 6, holding down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.)
    - Relaunch the App and try again.
      - Restart the device. http://support.apple.com/kb/ht1430
    - Reset the device. (Same article as above.)
    - Reset All Settings (Settings > General > Reset > Reset All Settings)
    - Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    - Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    - Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.
    If you want to contact Apple directly, call 1-800-MYAPPLE (1-800-692-7753), or go to getsupport.apple.com. 
    Don't waste your time asking for a downgrade of the iOS.  That's not an option.

  • How do i get my itunes to be the same on my laptop, ipod touch and ipad???? ive sync'd them all, but each is still different, please help

    how do i get my itunes to be the same on my laptop, ipod touch and ipad???? ive sync'd them all, but each is still different, please help

    Syning with iTunes is completely separate from iCloud, except that if you have elected to sync calendars and contacts with iCloud you cannot sync them with iTunes.
    What iTunes media are you having problems syncing to your iPhone?

Maybe you are looking for