How to Save Frame?

How do I save a frame in Quicktime Player 7.6.6?
Thanks.

How do I save a frame in Quicktime Player 7.6.6?
This usually depends on how your system is configured, whether or not QT 7.6.6 is keyed for "pro" use, how you plan to view, the file, and, where multiple options exist, which work flow you personally prefer.
1) For instance, on my currently configured system I can use QT 7 Pro v7.6.6 to export a PCT file using any of the available compression codecs. Unfortunately, PCT files have been replaced by PNG files as the default "system" image format. Therefore many apps no longer support this format or may limit transcoding possibility. (E.g., on my system I can open such a file in Preview but it limits export to PCT and PDF formats while Photoshop will open the file and export/save the to any of its normally available image file output formats.
2) You can use the "Command-C" option to save a copy of the current frame to clipboard memory, but once again the image is stored as PCT data by QT 7 so apps like Preview will not allow you to open an new file using data contained in the clipboard but Photoshop does on my system.
3) Another option would be to use the built-in system option to capture a screen shot of the QT 7 frame you want with or without the player framing the image and with or without an image shadow. This work flow captures a PNG image which is easily edited and/or converted to other image file formats by apps like Preview or Photoshop.
4) If you wish to use the 32-bit QT riutines but aren't tied to the use of the QT 7 Player, then you could use the free MPEG Streamclip app to capture the frame you want without that player frame and save it directly as a JPG, PNG, or TIF image file format.
5) In a similar manner, your can open your clip in the QT X player and then capture a frameslees frame directly to PNG using the system screen capture option without resorting to a secondary app for capture/conversion.
In short there are many work flows and apps that will allow you to do what you want once you decide which best suits your needs.

Similar Messages

  • What is a "frame"? ("Save Frame As...") How does it differ from "Save Page As..."?

    This is under the File menu. I am using Mac Leopard.

    See the image with Frame 1, 2, &3 just below the code here: <br />
    http://www.w3.org/TR/html4/present/frames.html#h-16.1
    Frames are a method of displaying different "pages" of information in the same webpage. '''Save Frame As...''' will save only the Frame that is in "focus" or the Frame that the cursor was last clicked on. If you have a multi-button mouse, when you right-click you will see more "Frame" menu items, like '''Show This Frame Only...'''.
    "Frames" aren't used much any more, I-Frames and new CSS coding has replaced Frames to a large degree.

  • How to save a video file which uses the setCodecChain method on its video t

    hi! i really need your help please. i got the Code for RotationEffect and i would like to know how to save it to a file instead of playing it simultaneously in a player:
    Here is the code: Plz Help me!!! am doing my final year project
    import java.awt.*;
    import java.awt.event.*;
    import javax.media.*;
    import javax.media.control.TrackControl;
    import javax.media.Format;
    import javax.media.format.*;
    * Sample program to test the RotationEffect.
    public class TestEffect extends Frame implements ControllerListener {
    Processor p;
    Object waitSync = new Object();
    boolean stateTransitionOK = true;
    public TestEffect() {
         super("Test RotationEffect");
    * Given a media locator, create a processor and use that processor
    * as a player to playback the media.
    * During the processor's Configured state, the RotationEffect is
    * inserted into the video track.
    * Much of the code is just standard code to present media in JMF.
    public boolean open(MediaLocator ml) {
         try {
         p = Manager.createProcessor(ml);
         } catch (Exception e) {
         System.err.println("Failed to create a processor from the given url: " + e);
         return false;
         p.addControllerListener(this);
         // Put the Processor into configured state.
         p.configure();
         if (!waitForState(p.Configured)) {
         System.err.println("Failed to configure the processor.");
         return false;
         // So I can use it as a player.
         p.setContentDescriptor(null);
         // Obtain the track controls.
         TrackControl tc[] = p.getTrackControls();
         if (tc == null) {
         System.err.println("Failed to obtain track controls from the processor.");
         return false;
         // Search for the track control for the video track.
         TrackControl videoTrack = null;
         for (int i = 0; i < tc.length; i++) {
         if (tc.getFormat() instanceof VideoFormat) {
              videoTrack = tc[i];
              break;
         if (videoTrack == null) {
         System.err.println("The input media does not contain a video track.");
         return false;
         System.err.println("Video format: " + videoTrack.getFormat());
         // Instantiate and set the frame access codec to the data flow path.
         try {
         Codec codec[] = { new RotationEffect() };
         videoTrack.setCodecChain(codec);
         } catch (UnsupportedPlugInException e) {
         System.err.println("The processor does not support effects.");
         // Realize the processor.
         p.prefetch();
         if (!waitForState(p.Prefetched)) {
         System.err.println("Failed to realize the processor.");
         return false;
         // Display the visual & control component if there's one.
         setLayout(new BorderLayout());
         Component cc;
         Component vc;
         if ((vc = p.getVisualComponent()) != null) {
         add("Center", vc);
         if ((cc = p.getControlPanelComponent()) != null) {
         add("South", cc);
         // Start the processor.
         p.start();
         setVisible(true);
         addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent we) {
              p.close();
              System.exit(0);
         return true;
    public void addNotify() {
         super.addNotify();
         pack();
    * Block until the processor has transitioned to the given state.
    * Return false if the transition failed.
    boolean waitForState(int state) {
         synchronized (waitSync) {
         try {
              while (p.getState() != state && stateTransitionOK)
              waitSync.wait();
         } catch (Exception e) {}
         return stateTransitionOK;
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt) {
         if (evt instanceof ConfigureCompleteEvent ||
         evt instanceof RealizeCompleteEvent ||
         evt instanceof PrefetchCompleteEvent) {
         synchronized (waitSync) {
              stateTransitionOK = true;
              waitSync.notifyAll();
         } else if (evt instanceof ResourceUnavailableEvent) {
         synchronized (waitSync) {
              stateTransitionOK = false;
              waitSync.notifyAll();
         } else if (evt instanceof EndOfMediaEvent) {
         p.close();
         System.exit(0);
    * Main program
    public static void main(String [] args) {
         if (args.length == 0) {
         prUsage();
         System.exit(0);
         String url = args[0];
         if (url.indexOf(":") < 0) {
         prUsage();
         System.exit(0);
         MediaLocator ml;
         if ((ml = new MediaLocator(url)) == null) {
         System.err.println("Cannot build media locator from: " + url);
         System.exit(0);
         TestEffect fa = new TestEffect();
         if (!fa.open(ml))
         System.exit(0);
    static void prUsage() {
         System.err.println("Usage: java TestEffect <url>");

    Can you please send me Your codec class and guide me the way you use it .. i am trying to apply some filters on the movie before presenting. Any help would be appreciated.

  • How to save an project in iMovie 10

    I am familiar with iMovies 9 and using OSX 10.6.8.  Unfortunately I have a new MacPro on OS 10.9.2 and iMovie10 (give me back my old MAcbook any day). I have finished making the movie and saved it on the desktop in mp4 format.  All I want to do now  is to find out is how to save the movie I have made so I can possibly get to it again to maybe add/delete things from it. In other words, I simply want to save it -
    how do I do this?
    can I save the movie in m4v format like I did in iMovie 9?
    the mp4 format is 900Mb for 10 min, the 12 minute movie I did in iMovie 9 is 400Mb when both saved as 720p. Why?
    Can you delete iMovie 10 from Mavericks and install iMovie 9
    Many thanks in anticipation from a very frustrated Mac user of 8 years now thinking of going to Windows

    Ok I think I've worked it out (did not know your could share to the theater, the icloud message made me assume theater was just for icloud) but I've another technical question about export quality and pictures in videos.
    I just published four different quality movies (480p, 560p, 720p, 1080p) which only had a few average quality digital pics in them, just to create a short movie to compare.
    I've always assumed that the quality of pictures was handled differently to video in that pictures would be fine quality even with lower quality setting, and the thing that really got hurt by lesser xxxP quality was the moving video not the pictures. But when I resized all four Quicktime movies so they were the same size and put them next to each other I could notice quite a difference in the sharpness between each of them. Since I'd rather have the pictures all used at their best quality will I have to choose the 60GB 1080p export function anyway at some point? It seems like such a waste of space and time when technically there are only about ten frames in the entire clip!
    Surely there's some kind of video encoding language where you can make the file size reflect this? Kinda like what vector graphics did to bitmap formats for image files.
    There must be a way round this ...

  • How to save mail content in IE ?

    I can save each mail in Netscape with 'save frame as',but can't save mail in Internet Explorer.
    Anyone know how to save mail in IE ?

    We have the Same Problem!
    We believe that this issue must be tryed here.
    We wish take message's bakup locally in the hard disk without use OutLook or other mail agent.
    We need to free space in the server saving the messages locally with file/save as.. the html page, and we cannot make this task with Internet Explorer ver 6.0.
    We use Mozilla and operate perfectly , but in IE doesn't.
    We believe the solution is "see" the message without Frames.
    The question is: How we can convert the message to pure HTML to can save it in IE.
    Thanks,
    Oscar A.

  • Save Frame As via Scripting

    I want a script to automatically save the current frame in a few different formats to a particular location. The most important formats would be a photoshop file with layers from the comp, and a flat jpeg file.
    In the Composition Menu, the Save Frame As feature does everything correctly, it just requires people to manually select a location and filename, which takes time and increases likelihood of user-error (other portions of the script need to find files at particular locations with particular names)
    There's apparently a special funciton in Extendscript, saveFrameToPng(), which lets you export a frame and put it exactly where you want it, but it only does .pngs, which can't be read by another application I need to use. I looked around for similar functions that might save to JPEG but couldn't find it.
    It seems like there should be a generals solution, that doesn't require me to jump through hoops like:
                    oldDuration = app.project.items[i].duration
                    app.project.items[i].duration = 0
                    app.project.renderQueue.items.add(app.project.items[i])
                    var index = app.project.renderQueue.items.length
                    app.project.renderQueue.items[index].outputModules[app.project.renderQueue.items[index].o utputModules.length].file = File(filePath)
                    app.project.renderQueue.items[index].outputModules[app.project.renderQueue.items[index].o utputModules.length].applyTemplate('Photoshop')
                    app.project.renderQueue.render()
                    Folder(folderPath).execute()
                    app.project.items[i].duration = oldDuration
    (The above code doesn't even work quite right, I can think of ways to fix it but it seems like there should be a much more elegant solution I'd rather find)

    You are correct, it doesn't. As I mentioned, there's a few problems with that method. It also leaves the timeline set to the "0 duration" and I'm not sure how to reset that so that compositors at my company don't have to keep resizing their timeline. I assumed (hoped?) that there were ways to fix both of those issues. If there's a completely different function I should be using I was going to worry about it. If I do have to worry about I guess I'd also like some explanation of how to change individual RenderQueu item settings, because right now I just know how to set it to pre-existing templates.

  • How to save an edited viceo clip in premier elements 11 to my organizer (windows 07)?

    How to save an edited video clip in premier elements to my organizer so that I can add teh edited video clip to my slide show on windows 7 operating system?

    sanford5
    This is not Adobe. We are Premiere Elements users trying to help other Premiere Elements users with their Premiere Elements workflows. Under those conditions, only Adobe may have the opportunity to access your computer in troubleshooting session between you and them. You can use the following link to contact Adobe via its Adobe Chat.
    http://helpx.adobe.com/contact.html?product=premiere-elements&topic=using-my-product-or-se rvice
    When the link opens, click on the statement "I still need help" to bring up Adobe Chat.
    I have no idea if they will charge you a fee for the service ($40 US dollar/hour). It might not even help you (fee or no fee) because you do not have the latest version of Premiere Elements.
    What you ask is easy enough. Let me try again with a step by step to see if we can get this working for you in principle and then fine tune the details.
    1. Export your Timeline to a file, using Publish+Share/Computer and then one of the choices
    Adobe Flash Video, MPEG, AVCHD, AVI, Windows Media, QuickTime, Image, Audio. I do not know what your project settings are, but I am going to guess at NTSC/AVCHD/Full HD1080i30. That would represent 1920 x 1080 @ 29.97 interlaced frames per second.
    The following is going to be a mini test run in principle so we will cut to the core and overlook some things.
    Go to Publish + Share/Computer/AVCHD/ and set Presets = MP4 - H.264 1920 x 1080p30.
    Note that there is a field for Save In: near where you set Presets. Set the Save In for Libraries/Documents not C:\Program Files\Adobe\Adobe  Premiere Elements 11. Keep out of the Program Files for matters such as these.
    Go to the Elements Organizer 12 File Menu/Get Photos and Videos/From Files and Folders and then browse to and select your MP4 file that you have saved in Libraries/Documents.
    You now should have your video represented in the Elements Organizer 12 with a thumbnail.
    Please let us know if that works for you. If not, then please let us know where you need supplemental help to get the task completed. I will re-write if necessary.
    We will be watching for your results.
    Thank you.
    ATR
    Add On...A little side note for later...If you took your file saved to the computer hard drive and imported that back into Premiere Elements with Premiere Elements' Add Media/Files and Folders, you would get
    a. the file imported into a new project
    but also
    b. a copy of the file automatically placed in the Elements Organizer 12.
    If the ideas seem overwhelming, please take the steps on one at a time and follow exactly what is written. You should do fine.

  • Where do I find the option "save frame as" in Firefox 4.0 for MAC ?

    In Firefox 3.6 for MAC I used the option ''save frame as'' from the FILE-menu to genereate a file called ''Container.aspx.html'' which I could open afterwards with Excel. It was good solution for not loosing the format of columns in html when going to Excel.
    Now I have upgraded to Firefox 4.0 for MAC and it seems that the option "save frame as" is no longer available in the FILE menu? Thanks in advance for helping me out.
    Kind regards,
    Joeri

    Thanks for the help but I press customize and I see the bar I want
    with a how do tab, the bar I want (Reload button next to Stop button)
    and a bookmark line.
    I tried something and didn't work.
    So had to Restore Default.
    Saving the url so I can get back here.
    Any takers to make an easy procedure as I review all the
    above again. Thanks again everyone.
    ED: Yeah I read the help on the buttons again and the drag and drop
    solution is just too vague and no attention to the presentation to what
    is puzzle to behold. Hey I DO NOT see all those button choices.
    https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars?
    Where did they come from?

  • How  to  save  content of a  whole  swing  page

    Hi everyone ..
    can any of u tell me ,how to save contents of a java swing page in a single file with all components viz . textfield,textarea,JTable,JPanel etc .. with their respective formatting ie.e Font,Color etc ..
    Plz let me know it soon .. its very urgent ..
    Can I save it as Screenshot or Jpeg Image .. or how to go about it .
    Mohit

    Sure: see below!
    WARNING: this code will not compile as is because it uses some other classes from my personal code library (FileUtil & StringUtil). The particular methods of those classes which are used below are trivial methods that anyone can write, which is is why I have not posted them as well. So, to get the code below to compile, you can
    a) write your own versions of these classes or
    b) simply add the necessary methods to this class or
    c) simply comment out their usage (in the case of StringUtil, which is just used for arg checking)
    But if you still want me to post them, then I can post the relevant fragments of those classes.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    import bb.io.FileUtil;
    import bb.util.StringUtil;
    * Class which supports taking screen shots of the entire desktop, AWT Components, or Swing JComponents.
    * This functionality is implemented in a series of <code>take</code> methods, each of which returns a BufferedImage.
    * This class also offers convenience <code>write</code> methods for storing BufferedImages to files.
    * <p>
    * The images taken by this class should be the precise images seen on the screen.
    * <b>However, the images written to files may deviate from the originals.</b>
    * One obvious cause is limitations of the chosen file format (especially with lossy formats like jpeg).
    * A subtle issue can occur, however, even when using lossless formats like png:
    * if the file is subsequently opened by another application,
    * that application may rescale the image, which can often cause visible artifacts.
    * <blockquote>
    *     To see this last problem on Windows XP,
    *     call {@link #take()} which returns an image of the entire desktop and write it to a file,
    *     and then open the file with XP's default graphics file viewer ("Windows Picture And Fax Viewer").
    *     This program shrinks the desktop image in order to fit it inside the program's window,
    *     and rescaling artifacts are readily seen, especially if the desktop image has any kind of text in it.
    *     If "Windows Picture And Fax Viewer" instead cropped the image or had a scroll pane, then this should not happen.
    * </blockquote>
    * <p>
    * Acknowledgement: this class was inspired by the program
    * <a href="http://www.discoverteenergy.com/files/ScreenImage.java">ScreenImage</a>.
    * Differences from the above program:
    * <ol>
    *  <li>this class uses {@link BufferedImage#TYPE_INT_ARGB} instead of {@link BufferedImage#TYPE_INT_RGB} in order to preserve alpha</li>
    *  <li>this class's {@link #formatNameDefault default image file format} is PNG instead of JPEG</li>
    *  <li>this class's <code>take</code> methods simply take snapshots and never have the side effect of writing image files</li>
    *  <li>this class added a version of <code>take</code> which can get a snapshot of a region of a Component</li>
    *  <li>
    *          when taking a snapshot of a region of a Component or JComponent,
    *          the Rectangle that specifies the region always has coordinates relative to the origin of the item
    *  </li>
    * </ol>
    * See also:
    * <a href="http://forum.java.sun.com/thread.jspa?forumID=57&threadID=597936">forum discussion #1 on screen shots</a>
    * <a href="http://forum.java.sun.com/thread.jspa?forumID=256&threadID=529933">forum discussion #2 on screen shots</a>
    * <a href="http://forum.java.sun.com/thread.jspa?forumID=57&threadID=622393">forum discussion #3 on screen shots</a>.
    * <p>
    * It might appear that this class is multithread safe
    * because it is immutable (both its immediate state, as well as the deep state of its fields).
    * However, typical Java gui code is not multithread safe, in particular, once a component has been realized
    * it should only be accessed by the event dispatch thread
    * (see <a href="http://java.sun.com/developer/JDCTechTips/2003/tt1208.html#1">Multithreading In Swing</a>
    * and <a href="http://java.sun.com/developer/JDCTechTips/2004/tt0611.html#1">More Multithreading In Swing</a>).
    * So, in order to enforce that requirement, all methods of this class which deal with components
    * require the calling thread to be the event dispatch thread.
    * See the javadocs of each method for its thread requirements.
    * <p>
    * @author bbatman
    public class ScreenShot {
         // -------------------- constants --------------------
         * Defines the image type for the BufferedImages that will create when taking snapshots.
         * The current value is {@link BufferedImage#TYPE_INT_ARGB}, which was chosen because
         * <ol>
         *  <li>the 'A' in its name means that it preserves any alpha in the image (cannot use the "non-A" types)</li>
         *  <li>the "_INT" types are the fastest types (the "BYTE" types are slower)
         * </ol>
         * @see <a href="http://forum.java.sun.com/thread.jspa?threadID=709109&tstart=0">this forum posting</a>
         private static final int imageType = BufferedImage.TYPE_INT_ARGB;
         * Default value for the graphics file format that will be written by this class.
         * The current value is "png" because the PNG format is by far the best lossless format currently available.
         * Furthermore, java cannot write to GIF anyways (only read).
         * <p>
         * @see <a href="http://www.w3.org/TR/PNG/">Portable Network Graphics (PNG) Specification (Second Edition)</a>
         * @see <a href="http://www.w3.org/QA/Tips/png-gif">GIF or PNG</a>
         * @see <a href="http://www.libpng.org/pub/png/">PNG Home Site</a>
         public static final String formatNameDefault = "png";
         // -------------------- take --------------------
         // desktop versions:
         * Takes a screen shot of the entire desktop.
         * <p>
         * Any thread may call this method.
         * <p>
         * @return a BufferedImage representing the entire screen
         * @throws AWTException if the platform configuration does not allow low-level input control. This exception is always thrown when GraphicsEnvironment.isHeadless() returns true
         * @throws SecurityException if createRobot permission is not granted
         public static BufferedImage take() throws AWTException, SecurityException {
              Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
              Rectangle region = new Rectangle(0, 0, d.width, d.height);
              return take(region);
         * Takes a screen shot of the specified region of the desktop.
         * <p>
         * Any thread may call this method.
         * <p>
         * @param region the Rectangle within the screen that will be captured
         * @return a BufferedImage representing the specified region within the screen
         * @throws IllegalArgumentException if region == null; region's width and height are not greater than zero
         * @throws AWTException if the platform configuration does not allow low-level input control. This exception is always thrown when GraphicsEnvironment.isHeadless() returns true
         * @throws SecurityException if createRobot permission is not granted
         public static BufferedImage take(Rectangle region) throws IllegalArgumentException, AWTException, SecurityException {
              if (region == null) throw new IllegalArgumentException("region == null");
              return new Robot().createScreenCapture( region );     // altho not currently mentioned in its javadocs, if you look at its source code, the Robot class is synchronized so it must be multithread safe, which is why any thread should be able to call this method
         // AWT Component versions:
         * Takes a screen shot of that part of the desktop whose area is where component lies.
         * Any other gui elements in this area, including ones which may lie on top of component,
         * will be included, since the result always reflects the current desktop view.
         * <p>
         * Only {@link EventQueue}'s {@link EventQueue#isDispatchThread dispatch thread} may call this method.
         * <p>
         * @param component AWT Component to take a screen shot of
         * @return a BufferedImage representing component
         * @throws IllegalArgumentException if component == null; component's width and height are not greater than zero
         * @throws IllegalStateException if calling thread is not EventQueue's dispatch thread
         * @throws AWTException if the platform configuration does not allow low-level input control. This exception is always thrown when GraphicsEnvironment.isHeadless() returns true
         * @throws SecurityException if createRobot permission is not granted
         public static BufferedImage take(Component component) throws IllegalArgumentException, IllegalStateException, AWTException, SecurityException {
              if (component == null) throw new IllegalArgumentException("component == null");
              if (!EventQueue.isDispatchThread()) throw new IllegalStateException("calling thread (" + Thread.currentThread().toString() + ") is not EventQueue's dispatch thread");
              Rectangle region = component.getBounds();
              region.x = 0;     // CRITICAL: this and the next line are what make region relative to component
              region.y = 0;
              return take(component, region);
         * Takes a screen shot of that part of the desktop whose area is the region relative to where component lies.
         * Any other gui elements in this area, including ones which may lie on top of component,
         * will be included, since the result always reflects the current desktop view.
         * <p>
         * Only {@link EventQueue}'s {@link EventQueue#isDispatchThread dispatch thread} may call this method.
         * <p>
         * @param component AWT Component to take a screen shot of
         * @param region the Rectangle <i>relative to</i> component that will be captured
         * @return a BufferedImage representing component
         * @throws IllegalArgumentException if component == null; component's width and height are not greater than zero; region == null
         * @throws IllegalStateException if calling thread is not EventQueue's dispatch thread
         * @throws AWTException if the platform configuration does not allow low-level input control. This exception is always thrown when GraphicsEnvironment.isHeadless() returns true
         * @throws SecurityException if createRobot permission is not granted
         public static BufferedImage take(Component component, Rectangle region) throws IllegalArgumentException, IllegalStateException, AWTException, SecurityException {
              if (component == null) throw new IllegalArgumentException("component == null");
              if (region == null) throw new IllegalArgumentException("region == null");
              if (!EventQueue.isDispatchThread()) throw new IllegalStateException("calling thread (" + Thread.currentThread().toString() + ") is not EventQueue's dispatch thread");
              Point p = new Point(0, 0);
              SwingUtilities.convertPointToScreen(p, component);
              region.x += p.x;
              region.y += p.y;
              return take(region);
         // Swing JComponent versions:
         * Takes a screen shot of <i>just</i> jcomponent
         * (no other gui elements will be present in the result).
         * <p>
         * Only {@link EventQueue}'s {@link EventQueue#isDispatchThread dispatch thread} may call this method.
         * <p>
         * @param jcomponent Swing JComponent to take a screen shot of
         * @return a BufferedImage representing jcomponent
         * @throws IllegalArgumentException if jcomponent == null
         * @throws IllegalStateException if calling thread is not EventQueue's dispatch thread
         public static BufferedImage take(JComponent jcomponent) throws IllegalArgumentException, IllegalStateException {
              if (jcomponent == null) throw new IllegalArgumentException("jcomponent == null");
              if (!EventQueue.isDispatchThread()) throw new IllegalStateException("calling thread (" + Thread.currentThread().toString() + ") is not EventQueue's dispatch thread");
              Dimension d = jcomponent.getSize();
              Rectangle region = new Rectangle(0, 0, d.width, d.height);
              return take(jcomponent, region);
         * Takes a screen shot of <i>just</i> the specified region of jcomponent
         * (no other gui elements will be present in the result).
         * <p>
         * Only {@link EventQueue}'s {@link EventQueue#isDispatchThread dispatch thread} may call this method.
         * <p>
         * @param jcomponent Swing JComponent to take a screen shot of
         * @param region the Rectangle <i>relative to</i> jcomponent that will be captured
         * @return a BufferedImage representing the region within jcomponent
         * @throws IllegalArgumentException if jcomponent == null; region == null
         * @throws IllegalStateException if calling thread is not EventQueue's dispatch thread
         public static BufferedImage take(JComponent jcomponent, Rectangle region) throws IllegalArgumentException, IllegalStateException {
              if (jcomponent == null) throw new IllegalArgumentException("jcomponent == null");
              if (region == null) throw new IllegalArgumentException("region == null");
              if (!EventQueue.isDispatchThread()) throw new IllegalStateException("calling thread (" + Thread.currentThread().toString() + ") is not EventQueue's dispatch thread");
              boolean opaquenessOriginal = jcomponent.isOpaque();
              Graphics2D g2d = null;
              try {
                   jcomponent.setOpaque( true );
                   BufferedImage image = new BufferedImage(region.width, region.height, imageType);
                   g2d = image.createGraphics();
                   g2d.translate(-region.x, -region.y) ;     // CRITICAL: this and the next line are what make region relative to component
                   g2d.setClip( region );
                   jcomponent.paint( g2d );
                   return image;
              finally {
                   jcomponent.setOpaque( opaquenessOriginal );
                   if (g2d != null) g2d.dispose();
         // -------------------- write --------------------
         * Writes image to a newly created File named fileName.
         * The graphics format will either be the extension found in fileName
         * or else {@link #formatNameDefault} if no extension exists.
         * <p>
         * Any thread may call this method.
         * <p>
         * @param image the BufferedImage to be written
         * @param fileName name of the File that will write image to
         * @throws IllegalArgumentException if image == null; fileName is blank
         * @throws IOException if an I/O problem occurs
         public static void write(BufferedImage image, String fileName) throws IllegalArgumentException, IOException {
              if (image == null) throw new IllegalArgumentException("image == null");
              if (StringUtil.isBlank(fileName)) throw new IllegalArgumentException("fileName is blank");
              File file = new File(fileName);
              String formatName = FileUtil.getExtension(file);
              if (formatName.length() == 0) formatName = formatNameDefault;
              write(image, formatName, file);
         * Writes image to file in the format specified by formatName.
         * <p>
         * Any thread may call this method.
         * <p>
         * @param image the BufferedImage to be written
         * @param formatName the graphics file format (e.g. "pnj", "jpeg", etc);
         * must be in the same set of values supported by the formatName arg of {@link ImageIO#write(RenderedImage, String, File)}
         * @param file the File that will write image to
         * @throws IllegalArgumentException if image == null; type is blank; file == null
         * @throws IOException if an I/O problem occurs
         public static void write(BufferedImage image, String formatName, File file) throws IllegalArgumentException, IOException {
              if (image == null) throw new IllegalArgumentException("image == null");
              if (StringUtil.isBlank(formatName)) throw new IllegalArgumentException("formatName is blank");
              if (file == null) throw new IllegalArgumentException("file == null");
              ImageIO.write(image, formatName, file);
         // -------------------- Test (inner class) --------------------
         * An inner class that consists solely of test code for the parent class.
         * <p>
         * Putting all the test code in this inner class (rather than a <code>main</code> method of the parent class) has the following benefits:
         * <ol>
         *  <li>test code is cleanly separated from working code</li>
         *  <li>any <code>main</code> method in the parent class is now reserved for a true program entry point</li>
         *  <li>test code may be easily excluded from the shipping product by removing all the Test class files (e.g. on Windoze, delete all files that end with <code>$Test.class</code>)</li>
         * </ol>
         * Putting all the test code in this inner class (rather than a shadow external class) has the following benefits:
         * <ol>
         *  <li>non-public members may be accessed</li>
         *  <li>the test code lives very close to (so is easy to find) yet is distinct from the working code</li>
         *  <li>there is no need to set up a test package structure</li>
         * </ol>
         public static class Test {
              public static void main(String[] args) throws Exception {
                   Gui gui = new Gui();
                   EventQueue.invokeLater( gui.getBuilder() );
                   new Timer(1000, gui.getTimerActionListener()).start();
              private static class Gui {
                   private Frame frame;
                   private TextField textField;
                   private JFrame jframe;
                   private JLabel jlabel;
                   private JPanel jpanel;
                   private int count = 0;
                   private Runnable getBuilder() {
                        return new Runnable() {
                             public void run() {
                                  System.out.println("Creating a Frame with AWT widgets inside...");
                                  frame = new Frame("ScreenShot.Test.main Frame");
                                  textField = new TextField();
                                  textField.setText( "Waiting for the screen shot process to automatically start..." );
                                  frame.add(textField);                              
                                  frame.pack();
                                  frame.setLocationRelativeTo(null);     // null will center it in the middle of the screen
                                  frame.setVisible(true);
                                  System.out.println("Creating a JFrame with Swing widgets inside...");
                                  jframe = new JFrame("ScreenShot.Test.main JFrame");
                                  jlabel = new JLabel(
                                       "<html>" +
                                            "To be, or not to be: that is the question:" + "<br>" +
                                            "Whether 'tis nobler in the mind to suffer" + "<br>" +
                                            "The slings and arrows of outrageous fortune," + "<br>" +
                                            "Or to take arms against a sea of troubles," + "<br>" +
                                            "And by opposing end them?" + "<br>" +
                                            "To die: to sleep; No more;" + "<br>" +
                                            "and by a sleep to say we end" + "<br>" +
                                            "The heart-ache and the thousand natural shocks" + "<br>" +
                                            "That flesh is heir to," + "<br>" +
                                            "'tis a consummation Devoutly to be wish'd." + "<br>" +
                                       "</html>"
                                  jpanel = new JPanel();
                                  jpanel.setBorder( BorderFactory.createEmptyBorder(20, 20, 20, 20) );
                                  jpanel.add(jlabel);
                                  jframe.getContentPane().add(jpanel);
                                  jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                  jframe.pack();
                                  Point p = frame.getLocation();
                                  p.translate(0, frame.getSize().height  + 10);
                                  jframe.setLocation(p);
                                  jframe.setVisible(true);
                   private ActionListener getTimerActionListener() {
                        return new ActionListener() {
                             public void actionPerformed(ActionEvent evt) {
                                  try {
                                       switch (count++) {
                                            case 0:
                                                 displayMessage("Taking a screen shot of the entire desktop...");
                                                 ScreenShot.write( ScreenShot.take(), "desktop.png" );
                                                 break;
                                            case 1:
                                                 displayMessage("Taking a screen shot of the central rectangle of the desktop...");
                                                 Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                                                 Rectangle region = getCenteredRectangle(d);
                                                 ScreenShot.write( ScreenShot.take(region), "desktopCenteredRectangle.png" );
                                                 break;
                                            case 2:
                                                 displayMessage("Taking a screen shot of the TextField...");
                                                 ScreenShot.write( ScreenShot.take(textField), "textField.png" );
                                                 break;
                                            case 3:
                                                 displayMessage("Taking a screen shot of the central rectangle of the TextField...");
                                                 d = textField.getSize();
                                                 region = getCenteredRectangle(d);
                                                 ScreenShot.write( ScreenShot.take(textField, region), "textFieldCenteredRectangle.png" );
                                                 break;
                                            case 4:
                                                 displayMessage("Taking a screen shot of the JLabel...");
                                                 ScreenShot.write( ScreenShot.take(jlabel), "jlabel.png" );
                                                 break;
                                            case 5:
                                                 displayMessage("Taking a screen shot of the central rectangle of the JLabel...");
                                                 d = jpanel.getSize();
                                                 region = getCenteredRectangle(d);
                                                 ScreenShot.write( ScreenShot.take(jpanel, region), "jpanelCenteredRectangle.png" );
                                                 break;
                                            default:
                                                 System.exit(0);
                                                 break;
                                  catch (Throwable t) {
                                       t.printStackTrace(System.err);
                             private void displayMessage(String text) {
                                  System.out.println(text);
                                  textField.setText(text);
                                  frame.pack();
                                  frame.invalidate();
                             private Rectangle getCenteredRectangle(Dimension d) {
                                  int x = d.width / 4;
                                  int y = d.height / 4;
                                  int width = d.width / 2;
                                  int height = d.height / 2;
                                  return new Rectangle(x, y, width, height);
    }

  • HT4437 How to increase frame of the picture when mirrorring ipad on apple tv

    How to increase frame of the picture when mirrorring ipad on apple tv ??

    Contact photos assigned in your Mac's Address Book and synced to the iPhone will be thumbnails.
    Photos assigned on the phone itself will be full screen.
    You can edit the photo in your contacts on your phone to use a full-size photo.
    Go to the contact with the small photo. Tap the "Edit" button at the top right.
    Then tap the photo. From the list that pops up, choose the "Edit Photo" button.
    Move and scale as you like and tap "Choose".
    Finally, tap the "Done" button at the top right to save your change.

  • Save Frame function saves the wrong frame

    Hi! I'm trying to save a frame from a movie clip. I've tried both the Save Frame and Create Still Frame options, but the result is not the frame I've currently selected. Difficult to say by how much it's off, but it seems to be at least a second, i.e. 24 frames... Anyone else with this problem? Any suggestions?
    Thanks!

    Hi
    Not knowing the origin to Your problem - General approach when in trouble is as follows:
    • Free space on internal (start-up) hard disk if it is less than 10Gb should rather have 25Gb
    • Hard disk is untidy: Repair Permissions, Repair Hard disk (Apple Disc Util tool)
    • Delete iMovie pref file - or rather start a new user/account - log into this and re-try
    • Third party plug-ins that doesn't work OK (not relevant for iMovie’08)
    • Program miss-match: iMovie 5.0.2, up to Mac OS X.4.11 AND QuickTime 7.4.1 - is OK
    • Program miss-match: iMovie 6.0.3 or 6.0.4, Mac OS X.4.11 AND QuickTime 7.4.1 - is OK (might work under Leopard)
    • Program miss-match: iMovie’08 v. 7.0.1, Mac OS X.4.11 AND QuickTime 7.4.1 - is OK (might work under Leopard)
    iMovie pref file resides: Mac Hard Disk (start-up HD)/Users/"Your account"/Library/Preferences
    and is named: com.apple.iMovie.plist
    While iMovie is NOT RUNNING - move this file out to desk-top.
    Now restart iMovie.
    Yours Bengt W

  • How to save the JFrame

    how we save the JFrame dynamically???????/

    hiiii
    i'm a student doing my project in real time video processing, wherein we plan to accept real time images 4rm the web camera. We wish to divide the main frame of our front-end into 3 parts. One will display the video coming in 4rm the webcamera & the other side of the screen(front-end) the processed video.
    The third part will consist of radio buttons, textboxes,etc, which we will use to adjust contrast,sharpening,etc. the changes must happen on the video as it comes in. The original video should continue to show as normal, and the processed video should reflect the changes. This should allow us to thus compare the two.
    Please suggest us some way of implementing the above using JMF. We have been able to get the video as it is captured from the webcam. However we are not able to figure out how to implement the second video screen after applying the various techniques, so that it appears as a real time video.
    Any help or suggestions in this regard will be appreciated.
    thanx,
    Leon.

  • Does enyone know how to grabb frames using JMF

    can u please help me , if enyone knows
    how to grabb frames from .AVI file using JMF and
    also
    how to save those frames as JPEG in to HDD .

    Take a look at this
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JVidCap.html

  • ALV Grid: how to save changes made in an editable Grid

    Hi,
    How to save changes made bu the user in any of the editable cells in a ALV Grid?
    Regards,
    deb.

    Hi,
    If you are using the FM look at the following example code...
    data: LC_GLAY TYPE LVC_S_GLAY.
    LC_GLAY-EDT_CLL_CB = 'X'.<<<<<------
    gt_layout-zebra = 'X'.
    gt_layout-detail_popup = 'X'.
    gt_layout-colwidth_optimize = 'X'.
    call function 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = i_repid
    i_callback_user_command = 'USER_COMMAND1'
    it_fieldcat = header
    is_layout = gt_layout
    i_callback_top_of_page = 'TOP-OF-PAGE1'
    i_grid_title = text-h17
    it_sort = gt_sort[]
    i_default = 'X'
    i_save = 'U'
    is_variant = gt_variant
    it_events = gt_events
    I_GRID_SETTINGS = LC_GLAY<<<<<<------
    TABLES
    t_outtab = itab.
    clear itab.
    Form USER_COMMAND1
    FORM USER_COMMAND1 USING u_ucomm LIKE sy-ucomm
    us_selfield TYPE slis_selfield."#EC CALLED
    case u_ucomm.
    when '&DATA_SAVE'.<<<<<<<<----
    This will come after the data was EDITTED and when SAVE was clicked by user in output scren.
    Here now in the final internal table(ITAB) you can find the data changed in EDIT mode.
    After this you can do manipulation what ever you want.
    Thanks.
    If this helps you reward with points.

  • How to save my voice memos in windows laptop as I already know how to synchronise ?

    How to save my voice memos from iPhone to windows laptop after syncronising with iTunes which memos are 1hr longer?

    Usually it goes to the last folder used or the folder the current PDF was opened from (I am getting the latter in my current Acrobat). If you want a different folder, you will have to go through the tree to your desired folder process.

Maybe you are looking for

  • Hard Drive Won't Mount So How Do We Back It Up?

    We have a Mac Pro with an internal 1TB backup drive that was working fine but now has suddenly stopped showing on the desktop. When we run Disk Utility it says the drive is not mounted and we get the error message "Disk Utility can't repair this disk

  • Java Stored Proc Return Types

    Hi, I am new to writting java stored procedures. I have some custom network functionality that I have previously implemented in java and I want to make this functionality available to the database. In particular my java gets a list of files. What is

  • Video playback on XP pro

    I was recently using my netflix online account and to use it i have to switch to xp . The problem i am having is that it appears that my graphics card isnt processing the data correctly. It displays all green and un viewable., The audio is fine, but

  • How to handle Adobe Form - Dynamic Tables.

    Experts: I am new to Web DynPro for ABAP and Adobe Interactive forms. I have created a Adobe form with dynamic table. When I submit the form, WD4A is able to read only the first row of the table. Other rows are getting lost. I thought just binding wi

  • Is there a way to delete certain messages that have already been deleted?

    I have some deleted messages that I want permanently deleted. Is there a way to delete individual messages permanently?