Displaying the layer image in a Flex panel

Hi,
I need to display the contents (image) of the active layer in a Flex panel. Was thinking along the lines of saving the layer as a temporary image and then loading it into an Image control. But is there a better/less messy way than this?

I want to know this too.

Similar Messages

  • Dreamweaver CS4- I can't get my site to display the proper image.

    I have a Dreamweaver CS4 Template with an editable area for a header image. I have already assigned a new image to all the header regions but when I moved the site to the web host the pages will only display the Default header image from the template in the editable region, even though when I check the file name in the Modify Templates window it displays the proper name, but displays the wrong image.
    What is wrong? any help would be greatly appreciated.
    thanks.

    Did you upload the new header image?
    This one is currently being displayed.
    http://stjohnvianney.net/parish_assets/Header_Church_img.jpg
    NOTE: Your email link is wrong.  It points to a file on your local hard drive.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Why doesn't Photoshop display the full image on open?

    I'm using Photoshop CC on a MacBook Pro with OS X 10.9.2 and an external monitor, and when I open an image, it is partially hidden by the display window - scroll bars appear along the sides of the image display window. It's a little annoying, but hasn't been a big problem - I can just resize the display window. However, when I run a script to place an image, the image is placed in the center of the window rather than the center of the actual image, so the placed image ends up being cropped off the base image. The images I'm using are not large, 650 x 296 pixels at 72dpi, and take up less than 1/4 of the screen at 100%.
    I've tried adding scripts like http://www.ps-scripts.com/bb/download/file.php?id=10&sid=adf04fde6ee2c 103cddbc41220d6c3b3 and http://morris-photographics.com/photoshop/scripts/view-pixels.html, but they had no impact on the opening of the files.
    How can I get the display window to show the entire image automatically when I open it? Thank you.

    I'm not familiar with coding script - do you have a suggestion as to what I might try? The Fit to Screen script works when I open an image from Finder, but it does not activate when I run a Automate Batch. The placed image still gets cropped.

  • My program always displays the same image, even when I change th image file

    I'm making a program that chooses an image file from a dialog, resize it and copy it into a folder. When the image is needed to be displayed, the image file is read and a JLabel displays it on screen.
    When I upload the first image, everything works fine. The problem appears when I upload another picture: the displayed image is still the first image, even when the old file doesn't exist anymore (because it has been overwritten). It looks like the image has been "cached", and no more image are loaded after the first one.
    This function takes the image picture chosen by the user, resizes it, and copy it into the pictures folder:
        private void changeProfilePicture() {
            JFileChooser jFileChooser = new JFileChooser();
            jFileChooser.setMultiSelectionEnabled(false);
            jFileChooser.setFileFilter(new ImageFileFilter());
            int result = jFileChooser.showOpenDialog(sdbFrame);
            if (JFileChooser.APPROVE_OPTION == result) {
                try {
                    //upload picture
                    File file = jFileChooser.getSelectedFile();
                    InputStream is = new BufferedInputStream(new FileInputStream(file));
                    //resize image and save
                    BufferedImage image = ImageIO.read(is);
                    BufferedImage resizedImage = resizeImage(image, 96, 96);
                    String newFileName = sdbDisplayPanel.getId() + ".png";
                    String picFolderLocation = db.getDatabaseLocation() + "/" +
                            PROFILE_PICTURE_FOLDER;
                    java.io.File dbPicFolder = new File(picFolderLocation);
                    if(!dbPicFolder.exists())  {
                        dbPicFolder.mkdir();
                    String newFilePath = picFolderLocation + "/" + newFileName;
                    File newFile = new File(newFilePath);
                    FileOutputStream fos = new FileOutputStream (newFilePath);
                    DataOutputStream dos = new DataOutputStream (fos);
                    ImageIO.write(resizedImage, "png", dos);
                    dos.close();
                    fos.close();
                    //set picture
                    sdbDisplayPanel.setImagePath(newFilePath);
                } catch (IOException ex) {
                    System.err.println("Could'nt print picture");
                }This other class actually displays the image file in a JLabel:
        public void setImagePath(String imagePath) {
            count++;
            speaker.setImagePath(imagePath);
            this.imagePath = imagePath;
            if(imagePath != null)   {
                //use uploaded picture
                try {
                    File tempFile = new File(imagePath);
                    System.out.println(tempFile.length());
                    java.net.URL imgURL = tempFile.toURI().toURL();
                    ImageIcon icon = new ImageIcon(imgURL);
                    pictureLbl.setIcon(icon);
                    // Read from a file
                } catch (IOException ex) {
                    Logger.getLogger(SDBEventClass.class.getName()).log(Level.SEVERE, null, ex);
            else    {
                //use default picture
                URL imgURL = this.getClass().getResource("/edu/usal/dia/adilo/images/noProfile.jpg");
                ImageIcon icon = new ImageIcon(imgURL, "Profile picture");
                pictureLbl.setIcon(icon);
        }

    When you flush() the image, you don't need to construct a new ImageIcon each time, a simple repaint() will suffice.
    Run this example after changing the URL to an image you can edit and update while the program is running.import java.awt.BorderLayout;
    import java.awt.Image;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.*;
    public class FlushImage {
       Image image;
       JLabel label;
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new FlushImage().makeUI();
       public void makeUI() {
          try {
             ImageIcon icon = new ImageIcon(new URL("file:///e:/java/dot.png"));
             image = icon.getImage();
             label = new JLabel(icon);
             JButton button = new JButton("Click");
             button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                   image.flush();
                   label.repaint();
             JFrame frame = new JFrame("");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             frame.add(label, BorderLayout.NORTH);
             frame.add(button, BorderLayout.SOUTH);
             frame.pack();
             frame.setLocationRelativeTo(null);
             frame.setVisible(true);
          } catch (MalformedURLException ex) {
             ex.printStackTrace();
    }db

  • IPad retina via iOS simulator can not display the whole image (2048x1536)

    Hi,
    I am developing cartoon ebooks with iOS simulatort 7.0. The target device is iPad retina. I use the image whose size is 2048x1356. After building by iOS simulator--iPad retina, only center part of image was displayed. I hope to show the whole image with simulator, how should I do?
    Thanks!

    You would do better to ask your question on the developers' forum. We are but simple users here....

  • My Firefox display the converted image

    Why in my firefox the displayed image converted? Need Help! If i move my cursor to the image, This pop ' Shift + R improves the quality of this image. Shift+A improves the quality of all images on this page'. It's so disturbme. I can't see the good image. HELP ME!!

    You may have an ISP that sends images compressed to speed up the transfer and adds a script to each page to make it possible to see images in the original quality.
    See [tiki-view_forum_thread.php?forumId=1&comments_parentId=197606]

  • Why aren't my CSS and div tag boxes displaying the background images I'm plugging in?

    I'm using the CSS dialog boxes to places images via the background image option into my dreamweaver site. Everything looks fine in dreamweaver but when I view it any of the browsers, two of the images I've place as div tag background images don't work....the overal background image of the site works, but these don't show up ....
    here's my code if it helps to answer
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Main</title>
    <style type="text/css">
    body {
    background-image: url(images/realgrade.jpg);
    background-repeat: repeat-x;
    text-align: center;
    html, body {
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top: 0px;
    padding-top: 25px;
    #wrapper {
    width: 930px;
    text-align: left;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    position: relative;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/possible%20image. jpg);
    background-repeat: no-repeat;
    #header {
    height: 192px;
    width: 237px;
    background-image: url(images/logo_fill.jpg);
    background-repeat: no-repeat;
    position: absolute;
    left: 35px;
    top: -25px;
    #mainNav {
    background-color: #33F;
    height: 200px;
    width: 272px;
    float: left;
    margin-top: 233px;
    #maincontent {
    height: 600px;
    width: 608px;
    float: right;
    margin-bottom: 45px;
    padding-right: 25px;
    background-repeat: no-repeat;
    background-position: center 270px;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/opaqueMaincontent .png);
    #sidebar {
    background-color: #F36;
    height: 250px;
    width: 272px;
    clear: left;
    float: left;
    #footer {
    height: 525px;
    width: 870px;
    clear: both;
    padding-top: 45px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    background-image: url(images/footer_image.jpg);
    background-repeat: no-repeat;
    margin-top: 45px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header">
        <p> </p>
        <p> </p>
        <p> </p>
      </div>
      <div id="mainNav">
    <p> </p>
    </div>
      <div id="maincontent"></div>
      <div id="sidebar"></div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    here's what I'm going for
    here's what I'm getting in the browser
    Please help!

    Your image files are pointing to your hard drive, not your server.  You have this
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/imag es/opaqueMaincontent.png);
    and you should have this
    background-image: url(imag es/opaqueMaincontent.png);
    Also, is your images file named imag es?
    Gary

  • After a PRAM reset my MBP 1,1 display is split into 4 parts each displaying the same image. What is causing this and how can I fix it?

    After resetting the PRAM/NVRAM (control, option, P, R) on my Macbook Pro 1,1 (2007) running 10.6.8 The screen is now split into 4 parts, each displaying the same thing. The screen immediately appears this way at the first grey screen, however if I do another NVRAM reset, upon restart after the second startup chime, the screen is normal but once it gets to a certain point around thetime the cog stops spinning, the screen flickers, turns blue and splits into four again.
    Another thing is when I tried using the Apple Hardware Test I couldn't read the instructions as the resolution was too small, but once I restarted and change my display resolution in System Preferences, the resolution was readable in AHT. I assumed the System Settings were loading when the OS had booted and that AHT runs without any of these settings (if that makes sense?)
    I've not used any third party utilites and everything working fine except for some battery issues which are gone now (the reason I tried the PRAM reset)
    Any help would be much appreciated

    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I display the entire image by default in Photos app instead of filling the entire screen?

    A lot of the images that I have stored on my phone are taken with another camera. Whenever I view them in the photo app they don't show the full image until I pinch them. Is there a setting that shows the entire image by default? Don't want to be pinching every photo and when other people view my images they often don't realise that there is actually more to see.

    Yes, this is terrible. I am not showcasing the otherwise fine screen but my carefully framed photos. How arrogant from Apple to violently zoom to my pics.
    This needs to be addressed ASAP! Everyone please give feedback http://www.apple.com/feedback/

  • Displaying the .png image stored in an byte array

    Hi,
    I have to download an .png image from a server and i have to store it in a byte array and i have to display this byte array in another servlet. I have written the code to get the image from the remote server in a java class. The java class returns the byte array of the image and i have to display that in an servlet.
    If anybody has the code or any refrence to refer please help me..
    Thanks & Regards
    -Sandeep

    I have pasted code for servlet's doGet method which writes image data...
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws
    ServletException, IOException
    HttpSession session = request.getSession(); //taking httpsession
    response.setContentType("image/jpeg");
    ServletOutputStream out = response.getOutputStream(); //taking outputstream of response
    if (rtn.getErrorCode() == 0)
    //this will actually write image file data from where it is being called
    //byte array will contain image data, please load your image into below byte array variable
    byte[] b = new byte[100];
    out.write(b);
    out = null; //making null
    session = null; //making null
    In other servlet, write <img> tag and specify its src attribute to the "name of servlet where u have pasted above code" ..
    Regards,
    Nikhil

  • When opening files in Photoshop CC, it only displays partial image. How do I get it to display the entire image on open?

    I understand that people want to check the quality of the image when they open it, but I hate that I'm looking at the top left of every image when I open it. It's not maximizing the size of the image based on my screen size. I hate having to hit apple-0 every time I open a file. Where's the preference to change this??!

    What you see is not normal on a PC I do not know abouts Mac's.
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • HT4623 hi, I tried restoring my ipad 4 using the itunes syncronised with my laptop, after erasing all application on he ipad the ipad cannot turn on again.  It is only displaying the itunes image on the screen.  how do I resolve thois?

    my ipad 4 cannot work again after trying to restore it using te itune application syncronised with my laptop.  After all files/data on the ipad have been erased it cannot start to work again.  It only displayed iunes icon on the screen

    Try placing the iPad in Recovery Mode on your own and restore again.
    Recovery mode - Support - Apple

  • Keyword search is displaying the duplicate image

    Hi,
    am facing a problem while i was passing a keyword search eg:shirts in ipad application(base is crs)
    http://localhost:8180/crs/storeus/adapter/searchService.jsp?txt=shirts(base is crs)
    for eg:
    IN Firefox
    i give a keyword like shirts in crs. its works fine, after that next tab i run my service(*http://localhost:8180/crs/storeus/adapter/searchService.jsp?txt=shirts*), its working fine
    eg 7 products in crs means same 7 products is display in my services
    <dsp:getvalueof var="totalResults" bean="QueryFormHandler.searchResponse.groupCount"/>
    <dsp:valueof value=${totalResults}/> 7
    its getting no duplication..
    now am running my service in another browser like IE
    here not running crs.only am running my service
    http://localhost:8180/crs/storeus/adapter/searchService.jsp?txt=shirts
    eg 7 products in crs means, here it may 8 or 9 products is display
    <dsp:valueof value=${totalResults}/> 8
    some of the products getting duplication..
    please suggest some points
    thanks in advance

    Hi,
    You could extend QueryFormHandler to see what is the query response in the afterSearch() method for each of your cases.
    I am doing that because I needed to duplicate some results based on a special property on our product item descriptor, you could do the same but for your duplicate issue trouble shooting.
    I hope this helps you
    Regards,
    Obed

  • How to display the archive link image in third party tool TSLImage viewer.

    Currently in our workflow scenario we are displaying the archivelink image in objects & Attachment, using SAP document viewer.  But the new requirement is, the attachment in workitem should be displayed using a thrid pary tool, EASY TSL IMAGE VIEWER. I have maintained the ARCHIVELINK Basic setting(OAG1),  Call Internet Browser. 
    The viewing of the document MUST use the TSLImageViewer web application which is hosted on rte-ben-ez2 for the test system u2013 NOT the SAP web document viewer. I think there must be an option in SAP Workflow that specifies that the standard OLE viewing is used for the work item attachments rather than the EDM viewing that I am getting.
    The authorising of the document MUST use the TSLImageAuth web application which is also hosted on rte-ben-ez2 for the test
    system. The url that are putting into the email needs to have this format:
                    http://rte-ben-ez2/TSLImageAuth?docid=$(%23SAPLEVEL1)\ECC6ARC1\00000153.001&logarch=E1.
    E1 is the content repository used for displaying.
    Can anybody tell me in further workflow settings where to mention the viewer settings as use thrid party viewer.
    Thanks in advance
    Shivani
    Edited by: shivani kolluru on Sep 27, 2008 12:33 PM
    Edited by: shivani kolluru on Sep 27, 2008 12:36 PM

    hey
    i need to display the an image.
    I am using apache commons codec for encoding and decoding.
    I have base64 encoded image data, i am decoding this and trying to create an image icon object by passing decoded byte array.
    That encoded and decoded byte array is BMP formatted data.
    or Is it possible to convert BMP data to any other format like png, jpg ....
    thanks

  • How to display the current date in Flex app

    I need to display the current date in my Flex application.  Is there a simple way to do this and display it as a label or text field?  Also, can this be formatted to display the date as "Day of Week, Month Day, Year"?
    Thanks!

    You can use this code and this page to tweak the formatString property.
    http://livedocs.adobe.com/flex/3/langref/mx/formatters/DateFormatter.html#formatString
    If this post answers your question or helps, please mark it as such.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          [Bindable] private var date:String;
          private function init():void{
            date = new Date().toString();
            date = df.format(date);
        ]]>
      </mx:Script>
      <mx:DateFormatter id="df" formatString="EEEE, MMMM D, YYYY"/>
      <mx:Label text="{date}"/>
    </mx:Application>

Maybe you are looking for

  • How to populate predefined data in Field

    Hi All, I have a requirement to populate certain value in one particular field and should be maintained by the user also from the UI. So below are the step i have followed to obtain this requirement: 1. Created one Code list using Business configurat

  • HT2486 How to backup my Macbook Air Contacts?

    I would like to periodically backup my Contacts in my Macbook Air. How do I do it?

  • VBSEC Table not updating while parking a doc

    Hi all, I am working on a program wherein I am using a FM which is a copy of the std FM PRELIMINARY_POSTING_FB01. When I am calling the FM ZPRELIMINARY_POSTING_FB01 I am passing the following tables to it t_bkpf, t_bseg,t_bsec,t_bset and t_bsez. Tabl

  • Print at actual size?

    I know this is an incredibly silly question, but how do I print an image in LR2 at it's actual size? I've been away from using the LR print module for quite a long time, and I just cannot see how to do it!  For example, if I have a 2 in x 3 in photo,

  • F:verbatim tag

    can anyone please explain to me what the purpose of this tag? an example wolud be very helpful Thanks.