Swap background image?

Hi,
I am looking for a posibility to dynamicaly change the background image of a vi.
See attached example: The switch should change the circle-image into a box-image. the two images are overlaid and I thought I could make one image visible and the other invisible, but the images have no terminal in the block diagramm...
Any idea?
Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
Solved!
Go to Solution.
Attachments:
Swap image.vi ‏17 KB

I can not open LV 9.0-VIs
Could you please either save it as 7.1 or upload a screenshot?
Thanks.
BTW here is a screenshot of my problem:
Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
Attachments:
Problem.PNG ‏27 KB

Similar Messages

  • Swap Background image using ActionScript

    I need to know how to change (swap) background images.
    Explanation:
    The main file (level 0) is named "Master".
    In the Master timeline, the lowest layer is named "bg" (for
    backgrround).
    On the bg layer is an image the size of the stage, and this
    image forms the background against which other movie clips (.swf)
    are shown.
    Purpose:
    In response to a user (ie: the user clicks a button), I want
    to change the background image.
    Problem:
    I have searched through Flash 8 Help system, and cannot find
    how to delete the 1st image from the "bg" layer, and add a
    different image.
    Hoping someone knows the answer,
    Thanks,
    John

    convert your image to a movieclip. you can then use
    movieclipInstanceName.removeMovieClip() to remove it. or, if you
    might want to use it latter in your swf, change its _visible
    property.

  • Dynamically swap background image with mouseover

    Hello, I need some help with this menu file. My inspiration was a post of Resdesign.
    I want to make a rollover that swap the background image for each button.
    I tried a lot of methods but I cant find the solution (please check line 111).
    Here is my file:
    WeTransfer
    Thanks a lot!
    alex from argentina

    Thanks Preran for your answer but I can´t find the way to implement the solution in that post.
    I tried this:
    // mouseover swap background
    sym.$('#newBtn'+i).mouseover(function(){
      sym.$("#newBtn"+i).css({'background-image':'url("images/fover.jpg")'});
      //sym.getSymbol("#newBtn"+i).$('background').attr('src',info[i].backo);
    Thanks!

  • Changing a background image according to the time of day/night...

    Hello all:
    I have a client who wants me to put in 2 different background image for an upcoming project,  (one for morning, one for night) and I'm wondering if anyone can tell me how to swap background images depending on what time of the day it is. The other problem is that it has to be through the Flash Designers mode and not the back-end. (if that's even possible)
    The reason being is that I have NO experience with ActionScript 3.0, (I'm only have experience with Dreamweaver, HTML, CSS etc.) so I am a complete and utter newbie in the world of Flash and ActionScript.
    If anyone could help me with this problem, it would be greatly appreciated.
    Thanks.
    Justin.

    I am not sure what you are trying to differentiate between when you say "Flash Designers mode and not the back-end", or what background image you are talking about... but in any case, Flash has the Date class with a getHours() methiod (like javascript) that you can use to tell what hour of the day it is (0 thru 23) which is probably all you'd need to determine when to show which picture.  If the images are in a Flash file, then you can just create a movieclip that has the images in different frames and use the getHours method to decide which frame of that movieclip to be in.

  • Background Image repeating for table cells

    I am trying to put different images as the background to all
    the cells in a table, so I can put text over the top of them, but I
    cant have an image without it repeating. Ive tried going into the
    code and adding background-image: "no-repeat" but that hasn't
    worked. I know nothing of CSS and it seems really confusing - so if
    this is the answer please give me CSS for dummies instructions.
    Layers drive me bonkers as no 2 browsers display them in the same
    place.
    URL is:
    http://www.visionsportsmedia.com/BillyTestSite/test
    At the moment only cell one is a background image, the rest
    are images inserted normally.
    Hope you can help.
    Thanks.

    Your question reflects the confusing mess your life will be
    if you persist
    with web authoring without taking the time to learn some HTML
    and CSS.
    You have -
    <th height="351" colspan="6" "scope="col">
    Note the extra doublequote just before 'scope'.
    Also note that your preloads (look at the body tag) as well
    as your image
    swaps (look elsewhere - everywhere you see 'file:///') are
    all broken -
    pointing to files on your hard drive. Finally, you might want
    to just think
    about making a page where there is no readable content
    (everything here is
    in images). It will get a zero search engine ranking....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "little bob" <[email protected]> wrote in
    message
    news:gqo8jh$ejo$[email protected]..
    >I am trying to put different images as the background to
    all the cells in a
    > table, so I can put text over the top of them, but I
    cant have an image
    > without
    > it repeating. Ive tried going into the code and adding
    background-image:
    > "no-repeat" but that hasn't worked. I know nothing of
    CSS and it seems
    > really
    > confusing - so if this is the answer please give me CSS
    for dummies
    > instructions. Layers drive me bonkers as no 2 browsers
    display them in the
    > same
    > place.
    >
    > URL is:
    http://www.visionsportsmedia.com/BillyTestSite/test
    >
    > At the moment only cell one is a background image, the
    rest are images
    > inserted normally.
    >
    > Hope you can help.
    >
    > Thanks.
    >

  • SSRS - A Subreport background image is overridden by background image of parent report

    Hello. I have a background image on my parent report and a different background image for my sub reports. The background image of my sub reports are instead inheriting the background image of the parent report. I've researched and found nobody talking about
    this. All my images are embedded.
    Is there away around this?
    Thanks,
    James
    James

    For both the parent report and the sub report, I right clicked the Images folder in the Report Data section and embedded the images in the rdl. The parent report has an embedded image called watermark. The child report has an embedded image called subreportwatermark.
    In the parent report, I added the following to the report properties:
    In the child report, I added the following to the body properties:
    Yes, I use an expression to determine whether to use the watermark or nothing based on a field of a dataset as you see above in both Value properties of both the report properties of the parent report and the body properties of the child sub report.
    If I run the sub report only in the BIDS solution for a child row that has Y for watermark value, the sub report's subreportwatermark does show.
    If I run the sub report only in the BIDS solution for a child row that has N for watermark value, the watermark does not show.
    So far so good.
    If I run the parent report in the BIDS solution for a parent row that has Y for watermark value, I don't get what I
    expect. Here is the scenario. Five pages are produced. One for the parent, and one each for the sub report.
    Parent Row - Watermark Y
        Child Row 1 - Watermark Y
        Child Row 1 - Watermark N
        Child Row 1 - Watermark N
        Child Row 1 - Watermark Y
    What I expect to see.
    Page 1 - Parent Report's watermark should display.
    Page 2 - Child Sub Report's subreportwatermark should display.
    Page 3 - Child Sub Report's - No watermark at all.
    Page 4 - Child Sub Report's subreportwatermark should display.
    Page 5 - Child Sub Report's - No watermark at all.
    To be clear. I should NEVER expect to see the parent report's watermark on pages 2 - 5.
    What was the actual result? This is what I see in BIDS when I click the preview tab in
    Print Layout.
    Page 1 - Parent Report's watermark displayed.
    Page 2 - Child Sub Report  - Parent Report's watermark displayed.
    Page 3 - Child Sub Report  - Parent Report's watermark displayed.
    Page 4 - Child Sub Report  - Parent Report's watermark displayed.
    Page 5 - Child Sub Report  - Parent Report's watermark displayed.
    This is what I see in BIDS when I click the preview tab in View
    Layout.
    Page 1 - Parent Report. No watermark displays.
    Page 2 - Child Sub Report  - Child Report's subreportwatermark displayed.
    Page 3 - Child Sub Report  - No watermark.
    Page 4 - Child Sub Report  - Child Report's subreportwatermark displayed.
    Page 5 - Child Sub Report  - No watermark.
    Both the print layout and view layout is wrong. What matters is what prints or is saved to a pdf. What prints and gets saved to a PDF is the Print Layout view.
    If you want, we can swap rdls. Can you send me your rdls?
    You can find my rdls at:
    https://onedrive.live.com/redir?resid=4292E6DE18E2BB8F!3676&authkey=!AKJwIRWxPmOPitw&ithint=folder%2crdl
    Thanks,
    James

  • Background image display problem in IE6

    I'm having another problem with my CSS. This one involves some background images not displaying properly in IE6. My navbar is an unordered list, and I'm using an image replacement technique to swap out the text for background images that serve as the buttons. The height of each button is 12 pixels, and the rollover is created by offsetting the image -12 pixels to reveal the bottom half of the image. So far so good. The images appear in all browsers, but IE6 displays more than 12 pixels of the image, revealing part of the rollover below it.
    Here's the page in question: http://www.colbydesign.com/redesign/index.html
    Here's a screen shot from BrowserLab of how the page looks in IE6: http://www.colbydesign.com/redesign/images/ie6_screenshot.jpg
    The <ul> height and image height are set to 12 pixels. I can't figure out why IE6 has a problem with the CSS. Maybe there's an IE6 hack I can use? Any help would be appreciated.
    Thanks,
    R-Co

    I didn't have a chance to work through the whole problem, but I believe that the font size of your "off-screen" menu text is pushing down the size of your ul and your li, as I see "overflow" outlines on that specific div.
    Try giving those items #header h1 a, specifically, a smaller defined font size.
    Alternatively, try applying an "overflow: hidden;" to the hover definition.
    Beth

  • Resizing 1) background images and 2) div's containing images

    I just created a web page consisting of little more than an image (about 900 pixels) wide which is set at width=100% in a style sheet. It works great, but I'd like to substitute a smaller image (to reduce page loading time) in mobile devices.
    If it was a background image, I could just declare two different background images based on screen size, but I don't know of any way to swap between images actually inserted in a page.
    So, is it possible to give a background image a width in percentage, similar to a static image? In other words, if my screen was 651 pixels wide, then a static image inside a container spanning the entire screen should also be 651 pixels wide. Can I rig it so that a background image in that container would also be 651 pixels wide?
    Of course, the obvious problem is height. If a background image measures 900 X 1200 pixels, and a screen is 600 pixels wide, then even if there's a style that makes the image 600 pixels wide, it would also have to calculate a height of 800 pixels, and I'm guessing that can't be done.
    Anyway, I'd just like to know what kinds of tricks one can use in making background images and divs containing static images display in percentages based on screen size.
    Thanks.

    Use background-size:cover; for your background images.
    Further reading: http://css-tricks.com/perfect-full-page-background-image/
    EDIT:// For swapping out placed images, it's a little harder to do right now as there is no specified solution from W3C. Some people want to use the srcset attribute, others the <picture> tag. There is no perfect approach right now. See: http://mobile.smashingmagazine.com/2013/08/21/webkit-implements-srcset-and-why-its-a-good- thing/
    One idea is you could hide the image and then load a background-image in the container which is smaller in size. But this would likely bloat your HTML and CSS as you use multiple images - the device will also load both images so you don't gain any real advantage unless you intend to show a croppoed or different image.
    Other ideas: http://mobile.smashingmagazine.com/2013/07/08/choosing-a-responsive-image-solution/
    <div class="image">
         <img src="YourImage.jpg" alt="" width="500" height="250" />
    </div>
    @media only screen and (max-width: 480px) {
         .image img {display:none;}
         .image {
              background:url("YourImage_Mobile.jpg") no-repeat 0 0;
              background-size:cover;
    Another idea is to show/hide the relevant image:
    <img src="YourImage.jpg" alt="" width="500" height="250" class="desktop" />
    <img src="YourImage_mobile.jpg" alt="" width="300" height="180" class="mobile" />
    @media only screen and (max-width: 480px) {
         .desktop {display:none;}
         .mobile {display:block;}

  • [SOLVED] GNOME 3.16 + GDM Login & Background Image

    It's being surprisingly difficult to understand what's needed in order to have a login screen that does not contain the default noise PNG as background.
    Apparently now the default theme is a gresource so common css overwrite don't seem to make it.
    How did you folks solved this problem?
    Apologies if already discussed, it's just that the problem is NOT the GNOME Desktop Background, and NOT the lock screen, just ONLY the gdm background screen during login.
    Other tricks seem to not work neither:
    sudo -u gdm dbus-launch gsettings set org.gnome.desktop.screensaver picture-uri '/new/picture.png'
    Thanks for any sort of help with this and Best Regards
    Last edited by WebReflection (2015-05-06 19:00:05)

    I finally got this to work. The wiki needs updating as of now it only states that gnome shell theme is now in a binary format, but not how to extract and repack it afterwards...
    Anyway this is how i got it to work.
    Use this script to extract gnome-shell-theme inside your choosen working directory
    extractgst.sh
    #! /bin/sh
    #change workdir to suit your system
    workdir=/home/merlin/temp/GS/test
    gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
    mkdir theme
    for r in `gresource list $gst`; do
    gresource extract $gst $r >$workdir${r/#\/org\/gnome\/shell/}
    done
    Once you've run the script you should have the theme extracted to the theme folder which was created inside your workdir.
    Now you can proceed to add a background image to this folder and edit gnome-shell.css by following the wiki page.
    You must now create the file gnome-shell-theme.gresource.xml inside the theme directory. Simply copy paste the xml code below into  gnome-shell-theme.gresource.xml,  making sure to change the line that refers to your background image. On my system the background image is named login-background.jpg
    <?xml version="1.0" encoding="UTF-8"?>
    <gresources>
    <gresource prefix="/org/gnome/shell/theme">
    <file>calendar-arrow-left.svg</file>
    <file>calendar-arrow-right.svg</file>
    <file>calendar-today.svg</file>
    <file>checkbox-focused.svg</file>
    <file>checkbox-off-focused.svg</file>
    <file>checkbox-off.svg</file>
    <file>checkbox.svg</file>
    <file>close-window.svg</file>
    <file>close.svg</file>
    <file>corner-ripple-ltr.png</file>
    <file>corner-ripple-rtl.png</file>
    <file>dash-placeholder.svg</file>
    <file>filter-selected-ltr.svg</file>
    <file>filter-selected-rtl.svg</file>
    <file>gnome-shell.css</file>
    <file>gnome-shell-high-contrast.css</file>
    <file>logged-in-indicator.svg</file>
    <file>login-background.jpg</file>
    <file>more-results.svg</file>
    <file>no-events.svg</file>
    <file>no-notifications.svg</file>
    <file>noise-texture.png</file>
    <file>page-indicator-active.svg</file>
    <file>page-indicator-inactive.svg</file>
    <file>page-indicator-checked.svg</file>
    <file>page-indicator-hover.svg</file>
    <file>process-working.svg</file>
    <file>running-indicator.svg</file>
    <file>source-button-border.svg</file>
    <file>summary-counter.svg</file>
    <file>toggle-off-us.svg</file>
    <file>toggle-off-intl.svg</file>
    <file>toggle-on-us.svg</file>
    <file>toggle-on-intl.svg</file>
    <file>ws-switch-arrow-up.png</file>
    <file>ws-switch-arrow-down.png</file>
    </gresource>
    </gresources>
    now the only thing left to do is to run
    cd ./theme
    glib-compile-resources gnome-shell-theme.gresource.xml
    It will create a gresource file that you can swap in /usr/share/gnome-shell.
    Good luck and hopefully I will save many some headache. Took me quite a while to get the whole thing working
    Last edited by atrotet (2015-05-06 04:49:36)

  • How to specify relative path for background image  in xsl

    Hi,
    I am generating a PDF from Apcahe FOP. I have an xsl for that, in the xsl fo:block I am displaying a background image. When the image path is absolute like..C:\image\logo.png it works fine. But I want to have the image in my WebContent\images folder and my xsl file is in WebContent\xsls folder. So when I try giving the relative path as ../images/logo.png, the image is not displayed.
    Can anyone tell how to do this???
    Thanks,
    Sanjeev.

    I have a fo:block like this :
    <fo:block border-style="solid" border-width="0.2pt" text-align="left"
                             background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
                             font-size="8pt" font-weight="bold" color="white" padding-top="1pt"
                             padding-bottom="1pt">
                             <xsl:value-of select="tr/td/span" />
                        </fo:block>In the above code you can see that the the background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
    has been given as absolute. The images folder is in my WebContent directory. I want this path to be relative to the context of my application , something like background-image="url('../images/table_header_center.png')".
    Thanks.
    sanjeev.

  • In linux, saving a background image (set as Desktop)feature doesnt download my image to wallpaper folder..or even to standard "Save download" feature. Can I tell firefox where (what folder) to save my "Set as Desktop" picture?

    When I find a suitable picture to use as wallpaper" I often right click and use the menu item "Set as Desktop Background". The file ""example.jpg" is saved in directory\folder "/home/user" rather than for example "/home/user/my wallpaper" or in the directory
    "/home/user/Downloads". The latter as being set under the "Downloads" section on the "General" tab in the "Preferences" dialog box.
    Is there a configuration file where I can change the default location to save my "Set as Desktop Background" images. Or better still can the menu be customized to launch the application that allows me to set my desktop wallpapers?
    I am using the "PCLinuxOS" Linux OS but I have encountered this issue in many if not all the Linux distributions I have sampled.

    Don't use "Set as Desktop". Use ''' "Save Image As..." ''' instead, and file it with your other "wallpaper" images so the operating system has access to those images.
    IIRC, Firefox saves a "desktop image" to the Profile folder, and it will only save one image, at that. Change the image and the previous one is gone.

  • Button Background images created in Indesign do not show up in PDF on some computers.

    I have created buttons that let somone swap one image for another in a PDF in Indesign and the copied and pasted the form fields from the exported PDF to the main PDF document.  An example can be seen here:  http://lustreproducts.com/PDFs/may11/Round_Worksheet.pdf
    The button images for the ends of the handrails seems to work on most computers, however, some people can't see them on their computer for some reason.  I thought it may be because they have too old a version of Reader maybe?  But the PDF should be compatible with Reader 7. Anyone else know what might be causing this?
    Thanks

    Perhaps they are not using Reader at all. Lots of Mac users mistakenly think Preview is capable of displaying complex PDFs and don't bother to download Reader.

  • Washed out background image on Treo Pro

    Hi:
    When I set my background image on my today screen (check the box in settings, browse to image - use 320x320 resolution) I get a "washed out" version of the image regardless of its original color, tone or intensity. Images from the preinstalled themes are fine - vibrant and clear - but the user set images are very light (almost like a 50 percent transparency in Photoshop for example). I have tried both .jpg format and .png. Backlight settings do not cure this either.
    Any ideas?
    Thanks.
    Post relates to: Treo Pro T850 (Bell)
    This question was solved.
    View Solution.

    Hi Again:
    Upon further investigation, I have discovered that the options for setting background and transparency levels is found through the pictures and videos explorer not the file explorer.
    As suggested I have set the transparency to 0 and the image (Crab Nebula through the Hubble space telescope) is as bright and vibrant as it should be.
    Thanks again for the direction - it's much appreciated.
    Post relates to: Treo Pro T850 (Bell)

  • Anchored graphic as background image?

    I am working with text flowing continuously through a master text frame unto multiple pages and I am trying to anchor a full-page background image (with bleed) onto specific pages. Is this possible?
    I want the background image to stay with the relevant heading on each page. However, when I use "Object/Anchored Object/Insert" to do this with "custom" as the anchor option I end up with a frame on the same layer as my text. This is okay, but when I place an image in the frame, it covers the text I have entered in the text frame. I can see the dotted line indicating the anchor connection, but not the text it is anchored to. I can't change the order of objects within the layer because the "Arrange" options are greyed out. Changing the text wrap options does not help.

    Thanks Bob! Really good to know. I will stop hitting my head against a brick wall!
    Adding backgrounds to master pages doesn't really cut it since I still can't have them flow dynamically with the continually evolving text in this project. (I suspect I might be able to flow backgrounds with text in Word, if it came to it, but of course I chose InDesign to give me more control, particularly over the non-text elements of the layout).

  • Problem with Background image and JFrame

    Hi there!
    I've the following problem:
    I created a JFrame with an integrated JPanel. In this JFrame I display a background image. Therefore I've used my own contentPane:
    public class MContentPane extends JComponent{
    private Image backgroundImage = null;
    public MContentPane() {
    super();
    * Returns the background image
    * @return Background image
    public Image getBackgroundImage() {
    return backgroundImage;
    * Sets the background image
    * @param backgroundImage Background image
    public void setBackgroundImage(Image backgroundImage) {
    this.backgroundImage = backgroundImage;
    * Overrides the painting to display a background image
    protected void paintComponent(Graphics g) {
    if (isOpaque()) {
    g.setColor(getBackground());
    g.fillRect(0, 0, getWidth(), getHeight());
    if (backgroundImage != null) {
    g.drawImage(backgroundImage,0,0,this);
    super.paintComponent(g);
    Now the background image displays correct. But as soon as I click on some combobox that is placed within the integrated JPanel I see fractals of the opened combobox on the background. When I minimize
    the Frame they disappear. Sometimes though I get also some fractals when resizing the JFrame.
    It seems there is some problem with the redrawing of the background e.g. it doesn't get redrawn as often as it should be!?
    Could anyone give me some hint, on how to achieve a clear background after clicking some combobox?
    Thx in advance

    I still prefer using a border to draw a background image:
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.border.*;
    public class CentredBackgroundBorder implements Border {
        private final BufferedImage image;
        public CentredBackgroundBorder(BufferedImage image) {
            this.image = image;
        public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
            int x0 = x + (width-image.getWidth())/2;
            int y0 = y + (height-image.getHeight())/2;
            g. drawImage(image, x0, y0, null);
        public Insets getBorderInsets(Component c) {
            return new Insets(0,0,0,0);
        public boolean isBorderOpaque() {
            return true;
    }And here is a demo where I load the background image asynchronously, so that I can launch the GUI before the image is done loading. Warning: you may find the image disturbing...
    import java.awt.*;
    import java.io.*;
    import java.net.URL;
    import javax.imageio.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class BackgroundBorderExample {
        public static void main(String[] args) throws IOException {
            JFrame.setDefaultLookAndFeelDecorated(true);
            JFrame f = new JFrame("BackgroundBorderExample");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JTextArea area = new JTextArea(24,80);
            area.setForeground(Color.WHITE);
            area.setOpaque(false);
            area.read(new FileReader(new File("BackgroundBorderExample.java")), null);
            final JScrollPane sp = new JScrollPane(area);
            sp.setBackground(Color.BLACK);
            sp.getViewport().setOpaque(false);
            f.getContentPane().add(sp);
            f.setSize(600,400);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
            String url = "http://today.java.net/jag/bio/JagHeadshot.jpg";
            final Border bkgrnd = new CentredBackgroundBorder(ImageIO.read(new URL(url)));
            Runnable r = new Runnable() {
                public void run() {
                    sp.setViewportBorder(bkgrnd);
                    sp.repaint();
            SwingUtilities.invokeLater(r);
    }

Maybe you are looking for