Saving overlayed images without shift

I am trying to programmatically save overlayed images of controls: a mixture of transparent XY graph applied on a vectorized picture. Grouping those controls in the front panel, copy  them and recover them from clipboard works fine. I would already have been glad to do that programmatically. Is there any way to use this group feature programmatically?
But as soon as I try to produce a picture combining both of them; I get into problems because they get shifted owing to their different origin on the front panel.
See attached small vi.
Thnaks for any simple solution.
Attachments:
test_save_superimposed_polar_diag_4_décalé.vi ‏70 KB

Simulate a key press: Print Screen
Then read the clipboard.
George Zou
http://webspace.webring.com/people/og/gtoolbox

Similar Messages

  • Saving a image without a background

    I did the tutorial on Removing Image Backgrounds with
    Fireworks. That works great, but I don't know how to save a image
    without a background. I am trying to save it for a website. I have
    Fireworks 8.0. I tried to save it as a Alpha Transparency GIF file
    , but the image is poor. I don't know the correct way of saving
    this.
    Any help would be greatly appreciated.
    Tony

    On Tue, 16 May 2006 20:48:12 +0400, Tony024
    <[email protected]>
    wrote:
    > Ilya Razmanov,
    >
    > I did have that problem viewing under IE 6 on one of my
    pc. My other
    > pc is
    > running IE 7 and it is fine. I am trying to save the
    image without any
    > bacakground so I can upload it to dreamweaver 8.0 so
    that it can be
    > viewed in
    > any IE. I am trying to use a GIF or a JPEG file.
    Official JPEG specs does not allow any transparency at all,
    so save your
    time and quit trying it. GIF only support limited colors (up
    to 256), one
    of that can be assigned as "transparent". So when FW exports
    GIF from a
    source file that have any partial transparency, it "premixes"
    any partial
    transparent color of source with "matte" color. In case the
    latter
    correspond to average color of your page background, and your
    page
    background is not too wild and colorful, and you are not
    using too wide
    partially transparent stuff, it normally work well.
    Among the image formats common on the Web, only PNG provides
    true partial
    transparency. Alas, IE still does not correctly understand
    that part of
    PNG specs that was set years ago. So if you definitely
    positevely can't
    live without transparency things that are available in GIFs,
    PNG plus
    specific CSS and\or Javascript trics is the only way to go.
    However, I'd
    personally make sure I can't live with old limited GIFs
    before going that
    way.
    Ilya Razmanov
    http://photoshop.msk.ru -
    Photoshop plug-in filters

  • How to see all image types when saving an image without selecting "all files"every time

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/951766]]</blockquote>
    Hallo, and thank you for reading this.
    I am a person who saves a lot of images online and renames them in different folders in different names like B - 34 or G - 56. I have been working with firefox 10 for quite some time and it had a pretty handy bug (I guess) where I could save an image and firefox would just save the image in it's original type (JPEG,PNG etc) while "save as type" was empty.
    It also always has shown all the image types in the folder where I save the images (except for GIF) and that helpes me quite a lot by saving me the trouble of selecting "all files" every time I save or going to the folder to rename every image.
    Now this seems to be lacking in the newest firefox versions and my question is if I can set firefox to always show me all the image file types when saving an image, instead of only showing JPEG's when I try to save a JPEG.
    Thank you for your time.

    I suspect this is a Windows problem. I am surmising the FilePicker uses the Operating System or Desktop facilities. Does Windows 7 offer any other file categories like ''images'' ?
    I do not normally use Windows 7, but may the option depend upon the directory being an indexed one, I ask after finding this thread ''Bring File types tab back'' [http://www.windows7taskforce.com/view/819]
    This question is a duplicate of [/questions/951764]
    Normally I would lock the duplicate question, but in this instance I will leave it open as it is unanswered and someone may give a better reply.

  • Saving rotated image without background

    Ok I need help....I have rotated an image 20 degrees and would like to save it as a rotated image but whenever I do there is a white background around the image. Look at the image below, I rotated it 20 degrees but when I saved it, it saved with the white background. How can I save the rotated image but without the white background????
    (I changed the color so you could see the background)

    If your working with one layer (locked background layer), double click
    on the layer thumbnail in the layers panel to make it a new unlocked layer.
    Then when you rotate the photo, the background should be transparent.
    Also to maintain transparency, save in another format other than jpeg, such
    as psd, tif, png-24.
    MTSTUNER

  • Saving created image without background?

    Hi I have PSE 8 and am new to this, I am trying to create a small 11x11 pixel orange circle but when i created it even using the transparency option, the image still gets saved with a white square background. Is it possible to save the created circle alone WITHOUT the white square background? If so, how please? 

    Open the editor and change the color swatch (usually black & white) to orange.
    Click on the arrows symbol so that orange becomes the background color.
    Select File > New > Blank File
    Set background contents to Background color and click OK
    Drag your elliptical marquee tool to form a circle and press ctrl+J
    You will see in the layers pallet a background layer and a transparent layer on top with your orange circle.
    Click in the layers pallet on the layer marked background and hit the trash can to delete.
    Resize your image to the dimensions you want.
    Then on the top menu select File > Save for Web
    Change from jpeg or gif to PNG-24 and check transparency.
    Click OK
    Choose a new file name and click OK.

  • Saving intensity image without border

    I am trying to save an intensity graph to an image file, so what I've done is used the "Invoke Node" -> "Get Image" to capture the control display.  The image is then wired into "Write BMP File" to save the image.  The problem is that the indicator's border still shows up.  After I hid the X, Y, Z, label, etc from the intensity graph, it still does not capture the graph data by itself.  The border shows up, so when I made the indicator transparent, the background of the vi shows up.  Is there a way to get JUST the image out of the intensity graph?
    My prior solution was to use the "Flatten Pixmap" function to save the image, but the color scale settings weren't preserved so my intensity images were very dark.  Maybe an alternative solution is to find a way to preserve the color table scale when saving?  Is there an easy way to do this?

    Hi AntLee29,
    I am not quite sure of what you would like to extract from the intensity graph. Could you please post some screen shots of what you would like to see and what you would like to not see, I think that these would help me to better understand the question. Thank you and have a great day!
    Best regards,
    Steven

  • Saving Binary Image with Overlay?

    Hi
    I'm having some issues saving an image with overlay information. I'm using IMAQ Find Circles to measure the radii of holes in a binary image. The hole data is then used with IMAQ Overlay Oval, to draw on ovals to highlight the circles detected. Works fine and the image is shown as expected in the image output on screen, pallette is set to binary. (See second image of 3, below)
    When I try and save the image to PNG I just get a blank (black) image. If I use the IMAQ Merge Overlay tool, I just get the green circles on the black (see last image of 3 below). Is there something I'm missing with pallettes/merging? Any help much appreciated. Snapshot of (messy) code attached.
    Solved!
    Go to Solution.
    Attachments:
    forum2.PNG ‏47 KB

    The problem is the binary image is all zeroes and ones.  A normal image goes up to 255, so a value of 1 looks black.
    One solution is to multiply the binary image by 255, which makes the image black and white.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to see all image file types when saving images without selecting "all files"

    Hallo, and thank you fom reading.
    I am a person who saves a lot of images online in different folders with different names like G - 456 or F - 35.
    I have been using firefox 10.0.2 for a long time because of a bug (I guess) that made it easier to save images.
    When I saved an image it would always show me all the image files in any folder I wanted to save it, and that way making it easier for me to save files with the right names.
    Now with the newer firefox (currently 19.0) whenever I try to save a JPEG I only see the JPEG files in the folder and only way to see the others is by selecting "save as type" all files, but with this I also see all the files that are not images.
    This used to save me a lot of trouble and a bit of time but I dont see anything in the options menu that can help me. Is there a way to recreate this function?
    Thank you for your time.

    I suspect this is a Windows problem. I am surmising the FilePicker uses the Operating System or Desktop facilities. Does Windows 7 offer any other file categories like ''images'' ?
    I do not normally use Windows 7, but may the option depend upon the directory being an indexed one, I ask after finding this thread ''Bring File types tab back'' [http://www.windows7taskforce.com/view/819]
    This question is a duplicate of [/questions/951764]
    Normally I would lock the duplicate question, but in this instance I will leave it open as it is unanswered and someone may give a better reply.

  • Saving image without bits loss/change

    hi there,
    I was trying to save an Image (which i created myself with MemoryImageSource, and proper bit manipulation where red bits hold some characters, very important)and then i saved the image to jpeg by by using BufferedImage and com.sun.image.codec pacakage...its very important that when i read back the saved image, the bits the pixels array are the same as they had been created....but i found them changing...though image looks almost similar....can anybody out there help me how can i recover the same bits in Image pixel array or save it properly using some other technique, so that when i read the image the bits are not changed???
    helps would be appreciated a lot..and your name would appear in my software's about dialog..that's a deal..plz help...
    kushal

    What codec were you using.
    You want one that has "lossless" compression.
    i.e. GIF, TIFF, TGA, BMP, etc.
    JPEG has "lossy compression" although as someone mentioned you may be able to call a method to force it to be lossless.

  • Help! Saving an image to stream and recreating it on client over network

    Hi,
    I have an application that uses JDK 1.1.8. I am trying to capture the UI screens of this application over network to a client (another Java app running on a PC). The client uses JDK 1.3.0. As AWT image is not serializable, I got code that converts UI screens to int[] and persist to client socket as objectoutputstream.writeObject and read the data on client side using ObjectInputStream.readObject() api. Then I am converting the int[] to an Image. Then saving the image as JPEG file using JPEG encoder codec of JDK 1.3.0.
    I found the image in black and white even though the UI screens are in color. I have the code below. I am sure JPEG encoder part is not doing that. I am missing something when recreating an image. Could be colormodel or the way I create an image on the client side. I am testing this code on a Win XP box with both server and client running on the same machine. In real scenario, the UI runs on an embedded system with pSOS with pretty limited flash space. I am giving below my code.
    I appreciate any help or pointers.
    Thanks
    Puri
         public static String getImageDataHeader(Image img, String sImageName)
             final String HEADER = "{0} {1}x{2} {3}";
             String params[] = {sImageName,
                                String.valueOf(img.getWidth(null)),
                                String.valueOf(img.getHeight(null)),
                                System.getProperty("os.name")
             return MessageFormat.format(HEADER, params);
         public static int[] convertImageToIntArray(Image img)
             if (img == null)
                 return null;
            int imgResult[] = null;
            try
                int nImgWidth = img.getWidth(null);
                int nImgHeight = img.getHeight(null);
                if (nImgWidth < 0 || nImgHeight < 0)
                    Trace.traceError("Image is not ready");
                    return null;
                Trace.traceInfo("Image size: " + nImgWidth + "x" + nImgHeight);
                imgResult = new int[nImgWidth*nImgHeight];
                PixelGrabber grabber = new PixelGrabber(img, 0, 0, nImgWidth, nImgHeight, imgResult, 0, nImgWidth);
                grabber.grabPixels();
                ColorModel model = grabber.getColorModel();
                if (null != model)
                    Trace.traceInfo("Color model is " + model);
                    int nRMask, nGMask, nBMask, nAMask;
                    nRMask = model.getRed(0xFFFFFFFF);
                    nGMask = model.getRed(0xFFFFFFFF);
                    nBMask = model.getRed(0xFFFFFFFF);
                    nAMask = model.getRed(0xFFFFFFFF);
                    Trace.traceInfo("The Red mask: " + Integer.toHexString(nRMask) + ", Green mask: " +
                                    Integer.toHexString(nGMask) + ", Blue mask: " +
                                    Integer.toHexString(nBMask) + ", Alpha mask: " +
                                    Integer.toHexString(nAMask));
                if ((grabber.getStatus() & ImageObserver.ABORT) != 0)
                    Trace.traceError("Unable to grab pixels from the image");
                    imgResult = null;
            catch(Throwable error)
                error.printStackTrace();
            return imgResult;
         public static Image convertIntArrayToImage(Component comp, int imgData[], int nWidth, int nHeight)
             if (imgData == null || imgData.length <= 0 || nWidth <= 0 || nHeight <= 0)
                 return null;
            //ColorModel cm = new DirectColorModel(32, 0xFF0000, 0xFF00, 0xFF, 0xFF000000);
            ColorModel cm = ColorModel.getRGBdefault();
            MemoryImageSource imgSource = new MemoryImageSource(nWidth, nHeight, cm, imgData, 0, nWidth);
            //MemoryImageSource imgSource = new MemoryImageSource(nWidth, nHeight, imgData, 0, nWidth);
            Image imgDummy = Toolkit.getDefaultToolkit().createImage(imgSource);
            Image imgResult = comp.createImage(nWidth, nHeight);
            Graphics gc = imgResult.getGraphics();
            if (null != gc)
                gc.drawImage(imgDummy, 0, 0, nWidth, nHeight, null);       
                gc.dispose();
                gc = null;       
             return imgResult;
         public static boolean saveImageToStream(OutputStream out, Image img, String sImageName)
             boolean bResult = true;
             try
                 ObjectOutputStream objOut = new ObjectOutputStream(out);
                int imageData[] = convertImageToIntArray(img);
                if (null != imageData)
                    // Now that our image is ready, write it to server
                    String sHeader = getImageDataHeader(img, sImageName);
                    objOut.writeObject(sHeader);
                    objOut.writeObject(imageData);
                    imageData = null;
                 else
                     bResult = false;
                objOut.flush();                
             catch(IOException error)
                 error.printStackTrace();
                 bResult = false;
             return bResult;
         public static Image readImageFromStream(InputStream in, Component comp, StringBuffer sbImageName)
             Image imgResult = null;
             try
                 ObjectInputStream objIn = new ObjectInputStream(in);
                 Object objData;
                 objData = objIn.readObject();
                 String sImageName, sSource;
                 int nWidth, nHeight;
                 if (objData instanceof String)
                     String sData = (String) objData;
                     int nIndex = sData.indexOf(' ');
                     sImageName = sData.substring(0, nIndex);
                     sData = sData.substring(nIndex+1);
                     nIndex = sData.indexOf('x');
                     nWidth = Math.atoi(sData.substring(0, nIndex));
                     sData = sData.substring(nIndex+1);
                     nIndex = sData.indexOf(' ');
                     nHeight = Math.atoi(sData.substring(0, nIndex));
                     sSource = sData.substring(nIndex+1);
                     Trace.traceInfo("Name: " + sImageName + ", Width: " + nWidth + ", Height: " + nHeight + ", Source: " + sSource);
                     objData = objIn.readObject();
                     if (objData instanceof int[])
                         int imgData[] = (int[]) objData;
                         imgResult = convertIntArrayToImage(comp, imgData, nWidth, nHeight);
                         sbImageName.setLength(0);
                         sbImageName.append(sImageName);
            catch(Exception error)
                error.printStackTrace();
             return imgResult;
         }   

    While testing more, I found that the client side is generating color UI screens if I use JDK 1.3 JVM for running the server (i.e the side that generates the img) without changing single line of code. But if I use JDK 1.1.8 JVM for the server, the client side is generating black and white versions (aka gray toned) of UI screens. So I added code to save int array that I got from PixelGrabber to a text file with 8 ints for each line in hex format. Generated these files on server side with JVM 1.1.8 and JVM 1.3. What I found is that the 1.1.8 pixel grabber is setting R,G,B components to same value where as 1.3 version is setting them to different values thus resulting in colored UI screens. I don't know why.

  • Saving an image in Root folder of tomcat

    Hello,
    i have an urgent problem with saving an image in the root folder of tomcat, which I want to do without having to specify the entire path.
    I have created a class, which i use as a bean in a jsp to save an image to the tomcat root folder.
    If I use the following command, the image is saved:
    ChartUtilities.saveChartAsJPEG(new File(
    "C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/trader/images/charts/1.jpg"), chart, 550, 260);
    However, I should be doing it like this, which doesn't work and throws me an IO exception:
    ChartUtilities.saveChartAsJPEG(new File("images/charts/1.jpg"), chart, 550, 260);
    Cheers

    Didn't we have this discussion in another thread? You can't give something urgently. It's semantically anaphoricular.

  • Easy way to manipulate overlay image file?

    Greetings, I'm currently trying to figure out how to simplify something for a client so they can make quick changes. Here's what I have:
    - Menu with a video in the background playing in a 30s loop.
    - Menu buttons with a specific "tile" I created in Photoshop, and placed into DVDSP as an overlay. This button "tile" (a vertical triangle) was placed in a specific position relative to the video in the background.
    - Menu buttons illuminate the triangle when you select a specific button properly.
    Now, the client has changed the background video from a 4:3 video to a 16:9 video, and wants to move the text and buttons on the menu. In doing so, this means the button "tile" needs to shift many pixels down.
    As far as I can tell, there's no way to simply grab the overlay image file and drag it down a few pixels, line it up by eye and be done with it. Do I have to go into Photoshop, manipulate the image, re-save it and reintroduce it to DVDSP?
    Basically, is there an easy way to move or relocate the overlay image file within DVDSP? Thanks!

    Tiresias314 wrote:
    As far as I can tell, there's no way to simply grab the overlay image file and drag it down a few pixels, line it up by eye and be done with it. Do I have to go into Photoshop, manipulate the image, re-save it and reintroduce it to DVDSP?
    Basically, is there an easy way to move or relocate the overlay image file within DVDSP? Thanks!
    Overlays cannot be moved or relocated in DVD SP. Best bet is to do it in a Custom 16:9 preset in Photoshop

  • Saving Edited Images to iPhoto '09

    I am just beginning to learn to use Photoshop Elements 6 for the Mac. I want to edit my photos in PSE, but organize & store them in iPhoto. After I finish editing a photo in PSE, how to I return the edited photo back to iPhoto?
    Thank you.

    I have just started learning photoshop elements 6 for the Mac and I, too am having a terrible time with saving images. I bought the "Missing Manual Photoshop Elements 6 for the MAC" book and so far cannot find the answers.
    I have set PSE as my photo editor in iphoto and when I double-click photos are indeed sent to PSE. My problem is I can't seem to save them back into iphoto. (After searching around this forum, I see that you cannot change name or format and then have iphoto create a version.) However, I have saved images without changing name or format and the new version seems to replace the original - the original is gone! When I go into iphoto I only see the originals if I DID change name or format. And then the new copy, in a different format or with new name, is not in iphoto!
    I can find these new versions in PSE>Open. They seem to be in iphoto in a folder called "modified". However when I go into iphoto I cannot find this "modified " folder anywhere!!! Can I only open them thru PSE and are they actually stored in PSE or iphoto. Please help- so frustrated!!! Thanks

  • How to best arc image without distortion to fit curved cup template?

    I have tried searching forum for this and I know it has been discussed before but not really finding what I need to do correctly.  I have attached the layered image (reducing opacity so you can both template and image). The vendor provided me a flat template, not a path, to do my artwork. As you can see I need to arc the image without distorting to fit a cup template. I am more comfortable in photoshop but I can export to AI if necessary to complete which appears what I need to do via envelope distort from what I keep seeing. However, the template provided is not a path. I tried to trace template shape manually with pen tool and use envelope distort to arc my image to conform but it looked very distorted and no even close to what I was trying to achieve. I tried to do tradition arc warp in photoshop but it still seems to distort proportions. Steps on how best to do this would be much appreciated! I know there must be a easier/more efficient way to achieve this.

    I would not trace the template and will simply use it as a visual reference for deforming (conforming) the image to it. You can make the template image transparent to certain degree using the Transparency panel so you can see through it then move its layer on top of all other layers and lock it. Scale and position your image in such way that at least two of its corners fit two corners of the template for example the two top corners and then its bottom edge is on the same level as the template.Then select the image to be deformed and in the control panel at the top of your screen click the Embed button which allows you to deform the image (edit: just noticed you wrote it is already embedded, so skip this).
    Choose Object > Envelope Distort > Make it with a Mesh. and chose 1 for rows and columns. Make sure the Smart Guides are on (View > Smart Guides). With the Selection tool (white arrow) Shift click or drag a selection box to select the two points of one of the vertical sides of your image. Pick the Sheer Tool and first just click on the selected top corner point to set the reference point of the sheer then click and drag the corresponding bottom point to match it to the corresponding point of your template. You may hold Shift while dragging to constrain although the Smart Guides will do that by snapping to edge of the envelope if your mouse is close to it. Repeat this for the other side of image. To make the image curved, pick the Selection tool (white arrow) click a corner point which will display its handles, pick a handle that is on a horizontal side of the image and pull it up to deform the shape referring to the template. You may do this first roughly with all horizontal handles and then you can drag guides from the ruler when a handle is selected to snap a guide to it and use it to put the corresponding handle on the opposite side on the same level.
    Once you have deformed the image to conform to the template, you can fine tune the distribution of the vertical deformation with the vertical handles of the corner points. You can grab a handle and drag it along the vertical paths of the envelope (the Smart guides will snap to it). Drag the vertical handles on one each side lower until you like the distribution of the deformation.
    Try to follow my instructions and I'll clarify if you are stuck.

  • Saving an Image

    Hi i have got a problem i'm writting a program that reads in a image, get the image pixels, alter the pixels and then write the image back out again. the problem is that when i write it back out the image goes from colour to gray scale and also when i save the image out without alter the image the image still changes slightly.
    to be more precise i save the image as a buffered image, get the pixels , edit the pixels and then save it back. i know that the editing of the pixels is not the problem becasue, when i run the code without editing the pixels and just save the image as a new image. it is still changed.
    try {
    fos = new FileOutputStream(newFilename+".JPG");
    } catch (FileNotFoundException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    try {
    ImageIO.write(newImage,"JPG",fos);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }above is the code that i use to save an image.
    so if anybody can help me and point me in the right direction that would be great.

    well i found out that i was altering the pixels somewhere else which is why i had the problem.
    but now that i have fixed that and i want to alter only one pixel then all the pixels arround the one i want to alter will chage to a different colour.
    i know this becasue i have created a 5*5 image with all pixels being red then i try to alter the 5th across and 4th down. but the result is that from that point the pixels will also change.
    i have tried this saving the image as a JPEG, GIF and as PNG and i get the same result

Maybe you are looking for

  • Missing files after drag and drop

    In the newest FCP X, I accidentally imported a couple .mov files into the wrong event. I dragged and dropped them into the correct event but now they are missing. I've checked each event in FCP, and also looked for the files in Finder (opening each e

  • Variance analysis at reopening a closed Discrete Job at 11.5.10.3

    Hi, On Discrete Manufacturing at 11.5.10.3 we closed several Job´s which were at several Production stage, then reopened all at same day. As I know Variance, if exists, is launched when Job is closed, and when reopened (in same Period) Variance is no

  • Balance calculation in P/L and balance sheet planning

    Dear Community, we are courently solving the issue of P/L and Balance sheet planning. We have two keyfigures (0AMOUNT and 0BALANCE). 0AMOUNT is planned and 0BALANCE has to be calculated according to the planned amount. We were thinking about writing

  • After upgrade 12.1 2 invalid objects found

    Hi, after we upgrade from 12.0.6 to 12.1 qwe found 2 invalid objects show below ARP_ACCT_MAIN AP_ACCOUTING_EVENTS_PKG any idea pleas advice.

  • NO_POSITION_INSERTED warning while creating bidders in SRM

    Hi SRM Gurus, We are getting the following warning message when trying to create Bidders in SRM. Could not create user; contact your system administrator. Personal data service error: NO_POSITION_INSERTED We are operating in SRM7.01 ECS and we are tr