How to copy screen to a image file?

AT

This will create a BufferedImage of the screen which you can then save to a file.
new Robot().createScreenCapture(Rectangle screenRect);

Similar Messages

  • How to copy screen to image file in Java

    How can I copy the screen to an image file and save it to the disk?

    This code will create a file screen.jpg in root drive
    File f = new File("\\screen.jpg");
    try {
    f.createNewFile();
    java.awt.Robot r = new java.awt.Robot();
    Dimension dim =java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    Rectangle rect = new Rectangle(dim);
    java.awt.image.BufferedImage img = r.createScreenCapture(rect);
    java.io.FileOutputStream fw = new java.io.FileOutputStream(f);
    java.io.BufferedOutputStream out = new java.io.BufferedOutputStream (fw);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(img);
    out.close();
    fw.close();
    } catch (Exception e) {
      e.printStackTrace();
    }

  • How to start the Toshiba Ghost image files from the HDD

    Hello
    Ok this is a tough one but hopefully some tech/wizz can help me out.
    I have all the necessary CD Recovery disc but my Toshiba laptop CDRom has died and i'm looking for replacement at the moment.
    I have managed to copy the image files and all the other info from these CD's onto the laptop hard drive via a network from my desktop cdrom. I did try to use the desktop cdrom to boot the 2.5" laptop drive but it knew it wasnt a toshiba laptop so wouldn't let me recovery.
    However now I have manage to copy all the ghost image files onto the laptop hdd I'm stuck on how to run installation via dos.
    The laptop hdd is formatted and all i have are the following files
    span.bmp
    setenv.bat --------> batch file contains following lines
    @ECHO OFF
    SET GHOSTPAR=
    SET SWN=01237000
    SET EXT=GHO
    SET VOLLABEL=%SWN%
    SET FILENAME=%SWN%.%EXT%
    01237001.GHS------> PART 2 OF IMAGE
    01237000.GHO -----> GHOST IMAGE MAIN
    01237000.CRC
    A folder called G_INST
    which contains 3 extra folders BMP, DOS and TOOLS and span.bmp
    I cant figure out how i can run ghost to extract and recovery my HDD can someone help me :)
    Thanks in advance
    Simon

    Im really skeptical if you will be start the Toshiba ghost image files from the second partition without using the Symantec Norton Ghost software.
    I have created a ghost image of the C partition and placed it on the D partition.
    To recover the C partition I have to start the Ghost Utility and have to use the image file .gho from D partition
    I have googled a little bit and found the useful instruction how to recover the Portege M3500 without using an CD/DVD drive. Maybe this will run also on the Sat A30.
    http://mobilepcwiki.com/mpc/index.php?title=Toshiba/Portege_M3500/FAQ
    By the way: the internal, compatible ODD can be ordered from the ASP in your country!

  • How do I find the aperture image files so that I can attach them to an email

    How do I find the aperture image files? I know that you can email images from aperture. But how would I attach an image using Mail?

    if you mean to go into the Aperture library in order to get image files to print with Canon's software it's not really possible. The best you would be able to do would be to get the master image and if you're shooting RAW that will be the RAW file. In any case no adjustments you made to the image in Aperture would be available, versions don't exist as files until you export them.
    If you want to print with the Canon software you would export the image from Aperture and then print that image file.
    If I've misunderstood your question post back,
    regards

  • How to copy screen selections?

    Is there native facility in Mac OS X for selecting and copying screen shots or must a third party application be used? I need to do this to copy and save graphics and photos from the web but also to send screen shots of error mesages and dialogs to tech support. Thanks in advance for any insights.

    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse button. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    If you want to attach a screenshot to a response here, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.

  • Hard drive recently failed and iPhoto brings a -36 error when copying need help accessing image files

    I recently updated my computer to mountain lion and after doing so my computer would no longer boot up.  I took it to the apple store and they told me that the hard drive was damaged and needed to be replaced.  They were booting my computer with an external drive and in doing so could access my computers HDD.  Upon starting to drag and drop files to a new hard drive I started to get a lot of -36 errors.  I proceeded to go go,e and create my own bootable thumb drive and try doing the same process with more time to look through it.  I have up till now been able to copy most of my files but have run into a problem with iPhoto.
    I have been searching around for a while now and have yet to find a method that helps me in my particular situation so I am now asking for help myself. I will explain what my current system of file recovery is and see if anyone can help me out.
    I have since then replaced the HDD in my computer and purchased a SATA external HDD enclosure for the original drive.  This allows me to still access all files and folders from the original drive.  I have managed to recover a majority of the files but have recently run into a problem with the iPhoto library.  Every time I try to drag and drop the iPhoto library to my new HDD it fails after "transferring" 2.02GB and tells me it has encountered a -36 error because some files cannot be read or written.  I believe I am using iPhoto '09, I will check and confirm that later.
    I am looking for a way to open iPhoto's library and access the image files it seems to be hiding from me. Please understand that I cannot open the iPhoto library either, I have lost access to the library entirely and want to see if there are any image files that I can save.  I dont have the computer backed up recently and want to save my photos.  Thanks for looking and I'm hoping someone can help.

    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command). Rebuild it to the Pictures Folder. This might overcome the -36 issue.
    (This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.)
    Failing that you're into recovering your Originals from the damaged Library and creating a new Library and starting over from scratch.
    Regards
    TD

  • How to copy a dir structure with files and subdir's in to another dir

    Hi there.
    How can i copy a dir structure with files and subdirs to another dir structure
    ie., all files and dirs in side the dir c:\aDir to c:\copyDir so i should get like c:\copyDir\aDir(all the files and subdirs of adir here)
    Thanks in advance
    Muthu

    File f = new File(dirName);
    if(f1.isDirectory()) {
    String list = f.list();
    then u have perform file io for each file and copy them to dir u want
    [email protected]

  • How to remove black border around image files?

    I'm something of a beginner with Photoshop, so forgive me if I've missed something entirely obvious: for some strange reason I'm now getting a black border around all image files that I save through the "Save for Web & Devices" panel. Does anyone know how I can save without creating this border? It looks rather unsightly when I load it into a client site. The file in question is a .png, but I seem to be getting the same effect with all other image files as well.
    Thanks in advance,
    Shane

    One cause could be having the matte color set to something other than none.
    Is that a png-8?
    MTSTUNER

  • How to read and paste an image file in the Adobe Indesign document by using plugins?

    Hai i'm senthil...
    i had just now started working with Adobe Indesign plugins...
    Can any one tell me how to read an image file from the hard disk and paste that image file in a text box in the document...
    plzz send me the codings and in which file we want to attach these codings...
    thank you..
    bye
    senthil

    hai art,
    thanks for ur reply...
    i tried and developed the program for pasting the image from
    the database...
    But now i want to paste 3 images in a page...
    for this i had used while loop;
    But i'm having 6 images in the database...
    when the 4th image is in reading, automatically a new page will
    be created and the 4th image will be pasted in the newly created page.. i tried and develped for creating a new page...
    But how shall i paste the 4th image in the newly created page...
    is there methods or classes?
    plzz reply...
    thanks..
    senthil..

  • How to copy White Balance settings betweenJPG files

    Hi all,
    Due to a stupid mistake I ran half a day in Joshua Tree National Park with my camera set to only save JPGs instead of RAWs... grrrr.
    I have relevant WhiBal shots from this period, but I cannot figure out how to set the white balance on the related shots since the temp scale in the Basic section of the develop module only seems to works with a relative -100 to +100 setting instead of the Kelvin scale normally used in the RAWs.
    Any ideas on how to "copy" and/or set the white balance in a JPG based on the adjusted value from another JPG?
    Any ideas greatly appreciated!
    Claus.

    Hi John,
    Thanx for the suggestion!
    I thought about this and experimented with it. However it seems that when working on JPGs this method just copies any "+nn" adjustment blindly to the target photos without any consideration to differences in the basic color ballance of the target photos.
    I guess the problem may basically be that if the JPGs do not have any saved info inside the file on the assumed White Balance in Kelvin used by the in-camera JPG conversion there may be no way to make such a relative adjustment between two JPG files.
    So does anybody know whether this info is available in a JPG file converted in cameray? In my case it's a Canon 20d.
    Claus.

  • How to import programmatically an APEX images file using workspace images option and CSS files to APEX?

    Oracle db 11gR2
    Oracle APEX 4.2.1
    Linux RHEL 6.3
    I am importing a images file programmatically into APEX.  And also a CSS file.
    I want to add an images file to my APEX instance but I want to choose the option -- workspace images --.  How does one do that programmatically via the APEX API e.g.?
    I don't want the images tied to an application within APEX.
    Does one do the same thing for CSS files that are imported to APEX?
    thx.

    This is interesting and helpful,  I use the following code to import my APEX database application and run it via SQL*Plus and it works fine for database applications -- what do I need to change/add/modify in order to load the images and CSS files?  NOTE: I want the images to be -- Workspace images -- not tied to any application.  Also, I need to handle the situation where the images and CSS data already exist in the APEX environment as well as when they are not there (i.e. initial install).  Usually it is a case where it is an upgrade so the data already exists in the APEX app and just needs to be updated.
    declare
                      v_workspace      varchar2(35)    := 'WORKSPACE';
                      n_existing_app   number          := 123;
                      n_new_app        number          := 456;
                      v_app_alias      varchar2(35)    := 'WKALIAS';
                      v_parsing_schema varchar2(35) :='WORKSPACE_PARSE';
                      n_secgrp_id      number;
                      v_err_msg        varchar2(200);
                      n_err_num        number;
                      n_workspace_id   number;
                    begin
                      -- get workspace id
                      select workspace_id
                      into n_workspace_id
                      from apex_workspaces
                      where workspace = v_workspace;
                      -- set workspace id
                      apex_application_install.set_workspace_id (n_workspace_id);   
                      -- set security group
                      apex_util.set_security_group_id (p_security_group_id => apex_application_install.get_workspace_id);
                      -- set pasring schema
                      apex_application_install.set_schema(p_schema => v_parsing_schema);
                      -- delete existing app
                      begin
                        wwv_flow_api.remove_flow(n_existing_app);
                      exception
                      when NO_DATA_FOUND then -- do nothing when the application does not exist
                        null;
                      end; 
                      -- set new app id
                      apex_application_install.set_application_id(p_application_id => n_new_app);
                      -- generate offset
                      apex_application_install.generate_offset;
                      -- set application alias
                      apex_application_install.set_application_alias(p_application_alias => v_app_alias);
                      exception
                      when others then        
                        n_err_num := SQLCODE;
                        v_err_msg := SUBSTR(SQLERRM, 1, 200);
                        dbms_output.put_line('Error number = ' || n_err_num);     
                        dbms_output.put_line('Error message = ' || v_err_msg);
                    end;
    @newapp.sql
    commit;

  • How to Copy Chapter Markers from one file to another

    Hi all,
    I am a relatively new GB user, so forgive the hopefully easy question. I want to combine four GarageBand files into one, in order. So right now i have part 1, part 2, part 3, etc.
    I figured out how to copy and paste the actual recordings in sequence (selected them all, copy and paste, worked great.) But I also have chapter markers that I want to copy and paste. I have the spacing worked out PERFECTLY and don't want to re-create them all. I know that I can select all the markers in a file, but they don't seem to want to paste. Instead, the headings from the file that were already there seem to repeat (most likely because of the time headings...)
    Is there an easy way to do this?
    - Many thanks,
    Michael

    Hmm. This is a stumper.
    I don't think it's possible in GB, obviously.
    The only thing I can think of off the top of my head is to (from GB) export each project as it's own podcast quicktime movie, then use another app to stitch these movies together? I would think QuickTime Player Pro would do this.
    I tried looking for the chapter markers within the quicktime movie file, hoping you could copy and paste just those, but I didn't find any access to them.

  • How to copy the content of one file into another

    I have tried this code
    try {
                   fin = new FileInputStream("file path");
              catch(FileNotFoundException exc)
                   System.out.println("File not found");
                   return 0;
              catch(ArrayIndexOutOfBoundsException exc)
                   System.out.println("Usage: Showfile file");
                   return 0;
              while(true){
                   i=fin.read();
                   if(i==-1)
                        break;
                   cnt++;
              fin.close();*/
    now in this way i can lift one character at a time and copy it into another file (note i have not done the copy part in this code but that can be implemented) however this whole procedure is taking too much time if the size of the file is too big....kindly suggest another way to copy one file into another

    have you ever copied and pasted a large file in Windows or another OS? Larger files take more time to copy, that's just how it is.

  • How to copy very large number of files from one drive to another???

    I'm a fairly experienced Mac user for serveral years but this problem really has me stumped.
    I'm trying to copy or move 152,000 files from one external drive to another drive. I can highlight (Cmd - A) all the files on the first drive and drag them to the second drive but Finder always shows 32,768 files being copied no matter what I try.
    Any and all suggestions on how to move/copy a large number of files from one external drive to another are greatefully appreciated.
    Thank you in advance,
    Mack

    I would use the command line tool rsync.
    For instance with: rsync -av source-dir destination-dir
    -a The files are transferred in "archive" mode, which ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved in the transfer.
    -v Verbose, so you see the progress.
    Rsync is fast and really, really powerful and many times used in shell scripts and the like to automatically backup and/or sync stuff. Google a bit for more info.

  • How to burn 6.33GB disk image file

    I have created a disk image file in Disk Utility that is 6.33GB. If I purchase extra capacity 8.5 DVDS, will I be able to burn a DVD from this? If so, what brand/format of DVD is recommended, and are there any special tricks to this?
    New to this and would appreciate any help I can get. Thanks

    young redwood wrote:
    ... what brand/format of DVD is recommended ... ?
    Here are some specific blank media brand recommendations:
    http://www.digitalfaq.com/media/dvdmedia.htm
    Looby

Maybe you are looking for

  • How to view *.eml files in Lotus Notes as native application?

    Using Desktop Integration for Lotus Notes, and using Contribution Folders via Notes: I can drop-and-drag an e-mail from lotus notes inbox to the contribution folder (in Notes) ok. I can view the *.eml file in Contribution Folder (Notes and Explorer),

  • xml:comment with BEA 6.1 sp1

    Hello, I have migrated a small project from BEA WLS6.0 to WSL6.1 with sp1. This project use the BEA taglib to transform XML data into HTML due an XSL stylesheet. My problem is that with the new version of the Xalan XSLT (WLS6.1), the XSL tag <xml:com

  • My whole project isn't playing properly.  All tracks unmuted, only 1 or 2 layers play.

    My whole project isn't playing properly.  All my tracks are unmuted, yet only 1 or 2 layers play. I have 33 tracks going.  Do I have to copy and paste each line individually into a new garageband project and mix it all over again?

  • How to insert the current datetime?

    Hello everyone, I'm beginner in this world, sorry for my simple question. I wanna insert the current date and time on the database after my application has started the stored procedure. I have to insert the following format for datetime column: 03/19

  • SCOM 2012: An account failed to log on. EventID 4625

    I don't no, why my service account failed to log on to the reporting service. Username and password are correct. Account For Which Logon Failed:     Security ID:        NULL SID     Account Name:        svcSCOM     Account Domain:        12345 Failur