How to save graph to jpg file ?could you give me a demo vi of lv6.1 ?thanks

thanks

You could use an "invoke node" for the graph with method "get image". See attached LV6.1 code.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
SaveJPG61vi.vi ‏29 KB

Similar Messages

  • Could not save preferences because the file could not be found (Windows) then Error 1 on PS,AE,PR,ID

    I was trying out Photoshop, everything was running fine then one day when I close it I get an error:
    "Could not save preferences because the file could not be found..."
    Now when I boot it I get the Configuration Error 1.
    After Effects still boots, but it reset all my preferences there. For example the workplace layout was reset, all my saved Output presets were removed and my memory-cache and performance settings were reset again.
    Premiere and InDesign get the error too and won't boot.
    This is the second time it has happened, I'll try wiping every Adobe program and reinstalling all over again, but it had run fine before for a while and it randomly happened.
    Any idea how to fix this?

    Nope I havent touched the Documents folder.
    Forgot to mention that I'm on Windows 7

  • How to save component to jpg without jframe

    the code shows 2 methods to save component to jpg,
    but if comment
    f.getContentPane().add(lb);neither saveJPG_1() nor saveJPG_2() works.
    can you explain why and how to work without jframe?
    thanks.
    public class Test1 {
          * @param args
          * @throws Exception
         public static void main(String[] args) throws Exception {
              new Test1().run();
         private void run() throws IOException {
              JLabel lb = new JLabel("Test Text");
              lb.setOpaque(true);
              JFrame f = new JFrame();          
              f.getContentPane().add(lb);
              f.pack();
              saveJPG_1(lb, new File("test1.jpg"));
              saveJPG_2(lb, new File("test2.jpg"));
              f.dispose();
         private void saveJPG_1(Component c, File file) throws IOException {
              Dimension dim = c.getPreferredSize();
              Image im = c.createImage(dim.width,dim.height);     
              c.paint(im.getGraphics());          
              ImageIO.write((RenderedImage)im, "jpg", file);
         private void saveJPG_2(Component c, File file) throws IOException {
              Dimension dim = c.getPreferredSize();
              BufferedImage im = new BufferedImage(dim.width,dim.height,BufferedImage.TYPE_INT_RGB);                    
              c.paint(im.getGraphics());
              ImageIO.write(im, "jpg", file);
    }

    Lazy loading is common place among variety of
    systems.
    Java GUI runtime must be doing it because on my
    Linux/JDK 1.6(build 61), component c is null at:
    c.paint(....);
    when adding onto contentpane is commented out.Lazy loading means classes are loaded on demand and at the last moment possible. What makes you think that this allows for a variable to be null even after the component has been instantiated? And what does the Java "GUI runtime" have to do with it? It's the class loader that's responsible for this. It should be impossible for c to be null at that point in the code. You're using a beta JDK though right? Perhaps that's the culprit.
    the code shows 2 methods to save component to jpg,
    but if comment
    f.getContentPane().add(lb);neither saveJPG_1() nor saveJPG_2() works.
    can you explain why and how to work without jframe?
    thanks.
    public class Test1 {
          * @param args
          * @throws Exception
    public static void main(String[] args) throws
    s Exception {
              new Test1().run();
         private void run() throws IOException {
              JLabel lb = new JLabel("Test Text");
              lb.setOpaque(true);
              JFrame f = new JFrame();          
              f.getContentPane().add(lb);
              f.pack();
              saveJPG_1(lb, new File("test1.jpg"));
              saveJPG_2(lb, new File("test2.jpg"));
              f.dispose();
    private void saveJPG_1(Component c, File file)
    ) throws IOException {
              Dimension dim = c.getPreferredSize();
              Image im = c.createImage(dim.width,dim.height);     
              c.paint(im.getGraphics());          
              ImageIO.write((RenderedImage)im, "jpg", file);
    private void saveJPG_2(Component c, File file)
    ) throws IOException {
              Dimension dim = c.getPreferredSize();
    BufferedImage im = new
    ew
    BufferedImage(dim.width,dim.height,BufferedImage.TYPE_
    INT_RGB);                    
              c.paint(im.getGraphics());
              ImageIO.write(im, "jpg", file);
    Can you display a JPanel on the screen without help? No. At some level it has to go back to a heavyweight widget. In this case the JFrame is that widget, so without it or a supplement you can't create the graphics context to create an Image of what that JPanel would look like displayed.

  • How can I delete two .jpg files from my desktop that refuse to be deleted?

    How can I delete two .jpg files from my desktop that refuse to be deleted?

    The two icons refused to be moved to the garbage. The good part in all this is that ater I turned off the computer at night and turned it back on the next morning they were gone!
    Thanks.

  • How to save a text or file in *doc from Pages?

    How to save a text or file in *doc?

    Igor,
    Use either File > Export, or Share > Export, and choose the Word option.
    Jerry

  • How do I convert a jpg file to pdf file

    how do I convert a jpg file to pdf file

    Use Acrobat. Your click-path:
    File - Create - PDF from File
    Be well...

  • How do I convert a jpg file to pdf?

    How do I convert a jpg file to pdf?

    Hi nwa metal buildings,
    You can use either Adobe PDF Pack or Acrobat to convert a JPEG to PDF. If you have further questions, don't hesitate to ask!
    Best,
    Sara

  • How to save downloaded update installer files

    How can I locate a downloaded update installer file so I can save it and use to install on another mac without having to download all over again?  Today I downloaded updates for OS X and also for Office 2011.  The first is over 2GB and the second around 300MB.  I have installed on my Macbook Pro, but I have another 3 units to update. I live in a 3rd world country with very slow internet and it takes me days to download such files.

    Grateful for you having replied but for some reason I seem unable to open your message "Re: How to save downloaded update installer files".  Waikato99

  • Officejet 6110xi, How to save scan as .jpg?

    officejet 6110xi, How to save scan as .jpg?

    Hello jpg0, and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are looking into your scan settings.  I would love to try and help you, but I do need a little information first. I am linking a few HP Support documents below that will show you how to find which operating system you are using. Also, if you're using Windows, please include whether your operating system is 32-bit or 64-bit. With this information we can provide you with accurate information.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please let me know what you find, and thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • How can I attach a jpg file in a mail message as the file icon, not as an opened image in the text?

    How can I attach a jpg file in a mail message as the file icon, not as an opened image in the text?

    what's wrong with this picture

  • How to save graphs or integrate with PDF???

    Hi All ,
        I want to display graph in PDF document . As it is not possible to put graph directly into interactive forms, can i directly save graph as image file through coding and then insert that image into interactive form????
    Regards
    Kavita
    Edited by: kavita chavan on Jan 7, 2008 3:16 AM

    Hi All ,
        I want to display graph in PDF document . As it is not possible to put graph directly into interactive forms, can i directly save graph as image file through coding and then insert that image into interactive form????
    Regards
    Kavita
    Edited by: kavita chavan on Jan 7, 2008 3:16 AM

  • I seem to be having trouble "save" or "save as" with jpg files. Any Suggestions?

    I seem to be having trouble "save" or "save as" with jpg files. Any Suggestions?

    By the way, a full uninstallation and reinstallation is a bit heavy-handed and is not always necessary.
    Keep in mind that with Photoshop CS6 the Plug-ins subfolder is now normally completely empty.  So to undo an inappropriate copy of plug-ins generally you can just delete all the copied plug-ins and that will restore proper Photoshop CS6 operation.
    Then you can reinstall your needed 3rd party plug-ins one by one.
    -Noel

  • I seem to be having trouble "save" or "save as" with jpg files.

    I seem to be having trouble "save" or "save as" with jpg files. Any suggestios?

    Awol2010 wrote:
    Any suggestions?
    Yes. - clarify what trouble(s) you are having.

  • HT5622 When I was update free OS update I was charged 60 INR four times, I don't how to claim my money back. Could you please help to get my money back?

    When I was update free OS update I was charged 60 INR four times, I don't how to claim my money back. Could you please help to get my money back?

    Did you add or change your credit card details on your iTunes account when downloading them ? If you have then each time that you do so a small temporary store holding charge may be applied to check that the card details are correct and valid and that it's registered to exactly the same name and address as on your iTunes account - it should disappear off your account within a few days or so.
    Store holding charge : http://support.apple.com/kb/HT3702

  • HT1926 My installation of Itunes to syne my iphone with PC was missing AppleApplicationSupport.msi  after 2 installs how can I install such a file do you have a path for this

    My installation of Itunes to syne my iphone with PC was missing AppleApplicationSupport.msi  after 2 installs how can I install such a file do you have a path for this

    Hi kensb!
    I would recommend that you attempt to reinstall all of the programs and components of iTunes on your machine and reinstall everything again. It can be tricky to get everything uninstalled, so we have an article that can help you make sure you uninstall everything:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/ht1925
    or
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/ht1923
    Specifically, when it comes to uninstalling, you will want to uninstall applications in this order:
    Use the Control Panel to uninstall iTunes and related software components in the following order. Then, restart your computer.
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended effects.
    You will then want to follow the links in those articles to download the latest package of iTunes software for your computer and install again from there. Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

Maybe you are looking for

  • Regarding Shift Activation In ECC 6.0

    Hi, We are implementating  ECC6.0 in our company. We have downloaded the Ecc6.0 enchnacement pacakages from service markets and applied it but still the shift is bnot being actives in confirmation screen Please helps us in tghis regards Bhupendra sin

  • AS2 with AIR 1.5, code to open a local PDF view

    Does anyone know how to do this. I want to make a simple button that will open a PDF for users to print a file. A button to directly print would be even better. Kyle

  • Apple Mail 1.3 and gmail issue. PLEASE HELP!

    Hi All, I just bought a g4 imac for my dad and am trying to set up apple mail for him with his gmail account. I have tried everything and I keep gettin this error no matter if it's set for POP or IMAP. Applemail 1.3.11 Panther 10.3.9 Please help a br

  • Can't upload artwork

    Okay, so after I let iTunes automatically find artwork for me and there were several blanks, I managed to figure out how to manually upload artwork. But for a few tracks, I can't do anything, it's grayed out. Like this - and I can't edit it at all. H

  • I have iPhone 4s but not show face time logo on my home screen and my settings.. Plz help me..

    my face time app is not waiting and not show in my iPhone 4s and in settings.. What can I do ... Plz help me