Inserting a small graphics in a picture control

Does any one have an example code for inserting a small graphics/8 bit bmp file (15x15) in a relatively large (240x360) 8 bit jpeg image at known location in LabVIEW using Picture Control? Thanks in advance.

Hello,
To read an image file (BMP, JPG, PNG) and put it into a picture control you can use the OpenG function "draw image from file", and then use the picture control property "Zoom" to fit it correctly.
Here's an example :
You can get OpenG functions from here.
Hope this helps.
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Similar Messages

  • How can I Manually Insert an Image into a Picture Control?

    Hi,
            I am able to insert an image programmatically into a picture control. But I want to insert an image into the picture control without any code that is manually. How can I Do that?
    Thanks in Advance
    Regars,
    Malleswari

    malli wrote:
    Hi,
            I am able to insert an image programmatically into a picture control. But I want to insert an image into the picture control without any code that is manually. How can I Do that?
    Thanks in Advance
    Regars,
    Malleswari
     You may also drag and drop a picture directly to your front panel. You can also use paint, or some other tools,  to copy a part of a picture and past it into your front panel. This actually works for the block diagram also. Se example 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    pic example.vi ‏157 KB

  • Inserting small graphic on "introduction" page

    Is it possible to insert a small photo below the text on an introduction page layout when making a book in iPhoto?

    Welcome to the Apple Discussions. Regarding building your own page- if you have Pages or an application that will let you add graphics and text you can create your own page, convert it to a grahic and add to a blank page. Tutorial #19 describes how to create one using the background of the theme you're using, etc. The tutorial is for a photo page but can be used for graphics and text, or whatever.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • How can I load a graphic in SOFFCONT1 into an SAP picture control?

    At my customer site, GOS attachments to PM notifications are stored in SOFFCONT1, so I can't use cl_bds_document_set to get a URL that I can pass to the load method of the SAP picture control.
    How can I load the actual graphic in SOFFCONT1 into an SAP picture control?
    Or do I have to configure IW22 so it stores in BDS content servers, not SOFFCONT1?
    If this is the case, how do configure IW22 so GOS knows to store attachments as BDS documents rather than in SOFFCONT1 ???
    Thanks
    djh

    This explains how to make sure your PC and bin documents are saved on your HTTP content server, instead of in the database:
    http://help.sap.com/saphelp_nw04/helpdata/en/c0/1aca5823ee11d3a2db00a0c943858e/content.htm

  • Insert Art into the Picture control using AGM and ADM

    Hello. I need to get selected art and display it on the User Interface Picture control. What I already did:
    void ASAPI my_inDrawProc( ADMItemRef item, ADMDrawerRef inDrawer) {
    AIArtHandle **artStore = NULL;
    long artCount = 0;
    AIRealRect bounds;
    sAIMatchingArt->GetSelectedArt(&artStore, &artCount );
    AIPathStyle m_style;
    AIDrawArtData drawData;
    const AIColorConvertOptions drawOptions;
    for (int a=0; a<artCount; a++)
    AIArtHandle my_artHandle = (*artStore)[a];
    sAIPathStyle->GetPathStyle(my_artHandle, &m_style);
    sAIPathStyle->SetPathStyle(my_artHandle, &m_style);
    // Insert to port data
    drawData.art = my_artHandle;
    sAIDrawArt->BeginDrawArt(&drawData, drawOptions, 1);
    sAIDrawArt->DrawArt(&drawData, drawOptions);
    sAIDrawArt->EndDrawArt(&drawData, drawOptions);
    What to do next? Please help

    I'm not familliar with the AiDrawArtSuite unfortunately, but another way you might consider doing it is to rasterize the art you want to display using the AIRasterize suite. This will give you back the raw image data that you can put into an ADMImage (and cache).

  • 3d picture control fail with Intel HD Graphics 4600

    I bought a laptop with Intel core i7 with Intel HD 4600 graphics. I'm testing a vi containing a 3D picture control. However when I run the vi, the 3d object that contains the 3d picture control displays a conflict, since the moving object, and this leaves no "clean" screen 3d object made. Any tips?, Thanks.
    Pdta: I'm using LV2012 and attached a picture of what that looks
    Attachments:
    Sin título.png ‏19 KB

    I too am having similar issues with 3d picture control paired with Intel HD Graphics 4000. Has this issue been resolved and what was the fix?
    Additional information, my lap top also has a NVIDIA Quadro K3000M card. This display adapter is used when only external monitors are used and not the laptop display. In this configuration my 3d picture control works fine. When I switch to the lap top display the Intel HD Graphics 4000 is used and that is when I see the 3d graphics issue.
    I have tried to turn off hardware acceleration and not given any acceleration option as suggested in the previous post. 
    I have the latest device driver for the Intel HD Graphics 4000.
    I am using LabView 2012
    Thanks for the help.

  • 3d picture control troubleshoot

    Hellow world!
    I have a minute problem.
    On my destop I have labview 2010 32 bit running on windows XP! I can access the examples like bounce ball and 3d bar graph etc and they all work fine"!!!
    On my laptop, a 64 bit operating system on windows 7 has installed a 32 bit labview application. Note both are student editions.
    Problem is, on my laptop! During easter these examples worked flawlessly and the 3D pictre on the front panel showed the ball bouncing on the bounce ball example found on the labview examples. 
    However since yesterday -  I reran these examples and the picture control box is grey -  it is blank!!!]
    Why????
    I need to know as soon as possible as I am using 3D picture for a project and it is not working on my laptop If bounce ball example works on laptoip, i know my program which I amde that uses 3D picture control willl also work.
    Please somebody help me!
    Saqib

    Hi Saqib,
    Thank you for your post, I understand that the 3D picture control examples provided in LabVIEW 2010 32bit are now blank although they worked correctly previously.
    Have you tried a few of the 3D picture control examples?
    Have you updated your Video Card drivers since Easter?
    There could be a compatibility issue between your PC's video configuration and the LabVIEW 3D Picture Control. The 3D Picture Control uses OpenGL (Open Graphics Library) in the background to display 3D models. It seems that your video card supports OpenGL otherwise the 3D Picture Control would not have worked previously, could you try the following:
     Upgrading the Video Card driver.
     Ensuring "Hardware Acceleration" is enabled and reviewing all the settings for your video card.
    If these steps do not resolve the issue could you please provide information on the model of your laptop and the video card chipset that is installed in the laptop (can be found in device manager).
    Please keep me informed with your progress.
    Many Thanks
    Jamie S.
    Applications Engineer
    National Instruments

  • Memory Leak with Picture Control

    Hi all
    There is bug with Picture Control
    When you insert you picture data in loop into the shift register, memory leak
    Can somebody to prevent this bug?
    Run attached example and look at Task Manager
    Attachments:
    Picture Memory Leak Example.vi ‏24 KB

    I believe David properly called the cause of this memory consumption.
    In reply # 52 of thsi thread,
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=5&jump=true
    I posted an example that inserts 130 FP object images in a picture and moves them around (it is a random walk where each object is assigned a letter and the program terminates when all of the letters required to spell out "Hello World" wander into the trap at the bottom.)
    A snippet of the code follows.
    A) Start with a blank picture
    B) Inster all of the images
    C) show the updated image.
    Other links to LV Picture control examples can be found in this thread.
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14&jump=true
    Ben
    Message Edited by Ben on 01-14-2007 08:58 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Many_Objects.JPG ‏24 KB

  • Is there a way to insert a Ai graphic into msWord and the graphic text be searchable in msWord?

    Is there a way to insert a Ai graphic into msWord and the graphic text still be searchable in msWord? I would like the text in my Ai graphic to be searchable once the graphic is inserted in msWord. I have tried different Ai exports, but all come into msWord as pictures. Is there a way to keep the Text Layer in my Ai file searchable in msWord.

    Which version of Illustrator are you using?
    Which version of Word are you using?
    What OS?
    Do you have a recent version of Acrobat?

  • LabVIEW picture control - many updates - memory problem

    Hello,
    I have limited experience with LabVIEW and I'm currently using a picture control in one of my applications.
    The idea is that certain regions (rectangles) inside the picture control get updated all the time with different colors. (depending on a measured parameters)
    I have a main while loop which holds a shift register containing the picture control.
    I noticed that the different "Draw Rectangle" operations I'm performing are accumulated so the memory keeps increasing...
    I've made a small example program that demonstrates this behaviour.
    I want to keep updating the picture control all the time in an easy way. How can I make sure that the memory does not get accumulated? Are there functions with which I can replace a part of the picture control with new pixel values instead of simply adding these new values each time to the picture control?
    Thanks in advance for all your help!
    Solved!
    Go to Solution.
    Attachments:
    Test picture control.vi ‏50 KB

    Adding to the above...
    THe Picture control has a property "Erase first" that can be set to always erase, don't erase and erase once now that can be used when you need to re-build the image.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Will Aperture ever support Nikon or Canon Picture Control settings?

    As with many people, I've also run into two issues:
    1) The RAW Picture Control settings used by Nikon don't seem to be supported by Aperture. I've downloaded the latest Camera Raw update (2.4) and yet it still seems that none of the settings get interpreted by Aperture. As a long-standing Aperture user, this is a major issue since it now requires me to import into either ViewNX or Capture NX2 and then transfer them to Aperture. Since I use Photoshop for dodging and burning, I'm beginning to wonder if I should just move to Lightroom.
    2) The highlights seem to get blown out fairly easily when viewed in Aperture. I often seem to have to pull back the highlights on many pictures.
    I was wondering if these are still persistent issues that others see as I'd like to consider what reasonable options I have.

    Jade, you gave up to easily!!!
    I would guess that Nikon makes most of their money from cameras, lenses, nik software and very little from NX software. While NX is fine for small projects, it is way to slow and plodding to be a meaningful workflow product.
    But, if Nikon teamed up with Apple so that Aperture could incorporate most of what is in NX under a licensing/royalty agreement, Nikon would sell lots more of their core products, Apple/Nikon software would be come the default workflow processing solution and would set industry standards for digital imaging for the pro. Canon would be forced to follow suit or fall very far behind. Nikon has done a wonderful job in bringing their bodies to leading the pack, they need more work on lens, IMHO, and a meaningful relationship or co development with Apple would seal the third arm of the puzzle.
    Consumers, Apple, and Nikon all benefit from such a model. Just have to get to terms that are acceptable and, as typical in these situations, there are too many big egos involved and unwilling to see the forest through the trees.
    Food for thought.....maybe....

  • About picture control

    hi
    i need to insert pictur control for the some interface can you tel me how should i do it?
    Regard
    Thanushi

    Hi,
    Define a Custom Container which is of type ref to cl_gui_custom_container.
    take a reference variable for picture.of type ref to cl_gui_picture.
    CREATE OBJECT container
        EXPORTING container_name = 'CUSTOM_CONTAINER'
                            lifetime       = lifetime.
    CREATE OBJECT picture
         EXPORTING parent  = container
                            lifetime = lifetime.
    Refer to the link
    http://help.sap.com/saphelp_erp2004/helpdata/en/9b/d080c09fc111d2bd68080009b4534c/frameset.htm
    REgards,
    jaya.

  • Open pdf and display it in picture control or picture box in LV8.5

    Im trying to open a pdf in labview v8.5 and post it in a picture control or picture box (activeX). Any help would be appreciated. thanks.
    M

    mblu,
    Check out these Forums that seem to have figured out how to do this using ActiveX.
    PDF in labview front panel
    Displaying A PDF File on the Labview Front Panel
    Import a pdf document to an active x control
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • How do I apply a texture to an imported .stl file in 3D Picture Control?

    Hi, I'm trying to apply a 2D image as a texture to an imported .stl file in 3D picture control. It works fine if I'm using a standard shaped mesh created in LabVIEW, however is there a way in which a texture can be applied to an imported model that isn't a standard shape, in my case a balloon. I've attached the an image of the Sub vi where I apply the texture. The object just shows up as a flat colour. Do I need to define how the image is applied to the mesh due to it being a non-standard shape? If so, any pointers would be appreciated.
    Many thanks.
    Oh, I'm using LabVIEW 2009 SP1.
    Attachments:
    stl texture problem.jpg ‏60 KB

    Apologies, been trying all afternoon and then a couple of minutes after posting, I figured it out. Using a property node for the Scenemesh reference, I set the property TextureGenMode to Spherical and it appears to now display the texture on the mesh.

  • Insert,  Delete and Update options in Table control

    Experts,
    I have writen code for Insert,  Delete and Update options in Table control. They are not working properly...
    can any one send the code for the above please...
    Thanks in advance..

    Hi,
    Following steps will help you.
    1.TOP-INCLUDE
    DATA: ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
    DATA: ITAB2 LIKE KNA1 OCCURS 0 WITH HEADER LINE.
    DATA: WA LIKE KNA1.
    DATA: ANT TYPE I,CUR TYPE I.
    DATA: OK_CODE TYPE SY-UCOMM.
    CONTROLS: TABCTRL TYPE TABLEVIEW USING SCREEN 100.
    IN FLOWLOGIC
    PROCESS BEFORE OUTPUT.
    LOOP AT ITAB1 CURSOR CUR WITH CONTROL TABCTRL.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CLEAR_DATA.
    LOOP AT ITAB1.
    MODULE MOVE_DATA.
    ENDLOOP.
    ADD “OK_CODE” IN ELEMENT LIST. CLICK ON LAYOUT AND  ADD TABLE CONTROL(name it as TABCTRL) AND PUSHBUTTONS AS FOLLOWS.
    SELECT THE FIELDS FROM PROGRAM. SAVE CHECK AND ACTIVATE.
    CLICK ON FLOWLOGIC EDITOR FROM APPLICATION TOOL BAR.
    DOUBLE CLICK ON MODULE “CLEAR_DATA”.
    write the in this module as below.
    CLEAR ITAB2. REFRESH ITAB2.
    DOUBLE CLICK ON MODULE “MOVE_DATA”.
    write the code in this module as below.
    APPEND ITAB1 TO ITAB2.
    ACTIVATE PAI AND WRITE THE CODE AS BELOW.
    CASE OK_CODE.
    WHEN 'FETCH'.
    SELECT * FROM KNA1 INTO TABLE ITAB1 UP TO 20 ROWS.
    TABCTRL-LINES = SY-DBCNT.
    WHEN 'ADD'.
    GET CURSOR LINE CNT.
    CNT = TABCTRL-TOP_LINE + CNT - 1.
    CLEAR WA.
    INSERT WA INTO ITAB1 INDEX CNT.
    WHEN 'MODIFY'.
    GET CURSOR LINE CNT.
    READ TABLE ITAB2 INDEX CNT.
    LOOP AT ITAB2.
    MODIFY KNA1 FROM ITAB2.
    ENDLOOP.
    SELECT * FROM KNA1 INTO TABLE ITAB1.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    ENDCASE.
    SAVE,CHECK AND ACTIVATE ALL.
    CREATE TCODE AND EXECUTE.
    contact if u hv any issues regarding this code.
    reward points,if it is useful.
    Thanks,
    Chandu.

Maybe you are looking for

  • IMac screen is black

    I have a 17" iMac G5 ALS, recently the computer started up fine but after putting it to sleep the screen stays black. I've tried restarting and zapping PRAM but nothing gets the screen working. I've plugged in an external monitor and I can see that e

  • Global FlashPlayerTrust Location ist wrong in the tech Spec document

    From Spec "This directory is named FlashPlayerTrust, and is called the Global FlashPlayerTrust directory. It is located alongside the directory that contains the mms.cfg file (see "mms.cfg file location" on page 19). For example, if the mms.cfg file

  • AppsDBA vs Functional Consultant

    Hi Friends, I just talked to my friend who just found job in Singapore as Functional Consultant (Financials). She said that there are lots of vacancies for Functionals there, and the highest paid are the HR Functionals. And there are less vacancies f

  • Is Altiverb 3 compatible with Logic7.1 / OSX 10.4.2?

    Hi all, Is Altiverb 3 compatible with Logic7.1 / OSX 10.4.2? .....Or do I need to upgrade Altiverb to version 5? What about version 4 ? Will that do? thanx, SvK

  • Salvando un file da Adobe Photoshop 5.0 ricevo il messaggio:  formatSelectorOptionStart: have revert

    salvando un file da Adobe Photoshop 5.0 ricevo questo messaggio: formatSelectorOptionStart: have revertInfo Cosa significa e cosa devo fare? L'immagine salvata ha i colori completamente sbagliati.