Rendering Images from a s:Arraylist and datagroup

Ok, I have one last problem that is perplexing me.  I am seeing the following when I run my application:
In my code I have main.mxml:
<fx:Declarations>
          <!--<mx:HTTPService id="mediaData" url="http://www.serco-hrc.com/SNAmedia/pictures.xml" />-->
          <s:ArrayList id="tempData">
               <fx:String>1 Picture</fx:String>
               <s:BitmapImage source="SNA_media/pictures/1.jpg"/>
               <fx:String>2 Picture</fx:String>
               <s:BitmapImage source="SNA_media/pictures/2.jpg"/>
               <fx:String>3 Picture</fx:String>
               <s:BitmapImage source="SNA_media/pictures/3.jpg"/>
               <fx:String>4 Picture</fx:String>
               <s:BitmapImage source="SNA_media/pictures/4.jpg"/>
          </s:ArrayList>
     </fx:Declarations>
     <s:HGroup left="10" top="78" width="100%">
          <s:Panel id="thumbsPanel" title="Thumbnails">
               <s:DataGroup id="mediaGroup" dataProvider="{tempData}" itemRenderer="components.NameDisplay">
                    <s:layout>
                         <s:VerticalLayout useVirtualLayout="true" />
                    </s:layout>
               </s:DataGroup>
               <s:VScrollBar right="0" height="100%" viewport="{mediaGroup}"/>
          </s:Panel>
          </s:HGroup>
There are other panels within my HGroup that have been commented out and have nothing to do with my issue here.  In my components.NameDisplay:
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    autoDrawBackground="true">
     <fx:Script>
          <![CDATA[
               import spark.skins.spark.DefaultComplexItemRenderer;
               import spark.skins.spark.DefaultItemRenderer;
               private function rendererFunction(item:Object):ClassFactory {
                    if (item is String) {
                         return new ClassFactory(NameDisplay);
                    } else {
                         return new ClassFactory(DefaultComplexItemRenderer);
          ]]>
     </fx:Script>
     <s:states>
          <s:State name="normal"/>
          <s:State name="hovered"/>
     </s:states>
     <s:Image width="100" height="100"
                source="{data.source}"
                horizontalAlign="center" verticalAlign="middle"></s:Image>
     <s:Label text="{data}"
                height="30" width="40"
                color="black" textAlign="center"
                verticalAlign="middle"></s:Label>
</s:ItemRenderer>
My images are coming from a Linked folder within my project as in:
After all this, I thought I did everything correctly.  Why are my images not showing up when I run my application?????
Tony

I finally figured out that I will have to absolute address my images within my s:ArrayList.  I thought I could use a project "linked folder" as a go-between, but that schema is not working as I envisioned. So my arraylist now looks like:
<s:ArrayList id="tempData">
               <fx:String>1 Picture</fx:String>
               <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\1.jpg"/>
               <fx:String>2 Picture</fx:String>
               <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\2.jpg"/>
               <fx:String>3 Picture</fx:String>
               <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\3.jpg"/>
               <fx:String>4 Picture</fx:String>
               <s:BitmapImage source="I:\Documents\development\SERCO\SNA_media\pictures\4.jpg"/>
Atleast my images are now displaying in the panel. Now if I could figure out why that "[Object Bitmap" text is showing up over the top of my images.
Any suggestions???  I have not changed anything in my code, yet.
Tony

Similar Messages

  • How to capture an image from my usb camera and display on my front panel

    How to capture an image from my usb camera and display on my front panel

    Install NI Vision Acquisition Software and NI IMAQ for USB and open an example.
    Christian

  • Get image from Excel as shape and Save as .jpg

    Hello,
       I'm fairly new to ActiveX and am having a hard time doing a seemingly simple thing: getting a named image from an Excel file and saving it as a .jpg.  I have seen similar things done for Excel chart objects, but as I understand it images are "shapes" in Excel and I've been unable to find the right method to extract a shape. Please, if anyone could take a look at the attached folder and tell me if I am on the right track, if there is a better way to do this, or if there is a way to do this at all, it would be helpful.  Note that I don't care how efficient a strategy is developed - if I need to save to an intermediate file of another type, that's fine. The only goal is to be able to extract this image and save it with one mouse-click and no manual intervention.
    Folder contains: 1 example Excel file containing the image named "Picture 1"; 1 vi showing the method I've found for exporting Excel charts as .jpg's; and 1 vi with the progress I have made so far trying to pick the image from the Excel file and save it as a .jpg.  
    Thanks in advance!
    Megan
    Solved!
    Go to Solution.
    Attachments:
    GetExcelPicture.zip ‏70 KB

    Hi megan,
    see this link.
    Hope it helps.
    Mike

  • URGENT - how do I convert and image from colour to black and white?

    Hi,
    I'm new to Java, and I really need some code to convert an image from colour to black and white! I would really appreciate any help, but since I don't know much about Java I would prefer some code or links to websites with the code.
    Thanks!!!

    http://forum.java.sun.com/thread.jsp?forum=5&thread=368759

  • I lost my images from my hard drive and now I can not access them in Lightroom. What can I do?

    I lost my images from my hard drive and now I can not access them in Lightroom. What can I do?

    Your images are truly no longer present on the hard drive(s)? Have you had your operating system do a search for them?
    If such a search fails to find them, here's what I would do, in order
    Look in the trash can/recycle bin
    Restore from backups
    If you don't have backups ... well, why not? ... find a program on the internet called an "undelete utility" (free versons are available) and then download and install it and run it. If you are going to do this, then do not perform any other tasks on your computer except find the program, download it (if possible to a different drive than the photos were stored on), install it (if possible to a different drive than the photos were stored on), and run it. In the future, you will need to commit to making regular backups of your photos and of your Lightroom catalog file, no excuses.
    If that doesn't work, but the thumbnails still appear in Lightroom, you can probably recover the thumbnails from Lightroom via a plug-in, but these would be low-resolution versions of your photos, if you really need instructions on this step, write back

  • Convert image from RGB to CMYK and back to RGB

    Hey.
    I wonder if anyone has experience with converting image from RGB to CMYK and back to RGB?
    I had a TIF in RGB then converted to CMYK but I figured that it might be better to keep in RGB, so I converted back. I read that it supposed to cause some loss in the data, but I can't see anything on the image, it is still very huge and the 2 RGB files has the same size as well. Is there a way to compare the resolution of 2 images somehow, or how can I see what I lost through the 2 conversions?
    Thanks for help

    I had a TIF in RGB then converted to CMYK but I figured that it might be better to keep in RGB, so I converted back.
    The original RGB data is not being restored by converting from the CMYK version, so the term "keep" seems inappropriate.
    What are the actual Color Spaces (ICC profiles) involved?
    Is there a way to compare the resolution of 2 images somehow, or how can I see what I lost through the 2 conversions?
    How did resolution come into this?
    To determine how large a portion of the image has been changed you could
    • make a flattened copy of the original image
    • place a flattened copy of the RGB->CMYK->RGB image on top of that and set it to Blend Mode Difference
    • add an Adjustment Layer (Curves for example) to brighten the image

  • What is involved in removing an image from a PDF document and inserting a new one?

    Our form producing process is very typical:
    (1) Start with a TIFF image, create a fresh PDF document.
    (2) By adding items such as links and interactive fields, convert the read-only document into an interactive form.
    Step (2) may take a lot of work, but fortunately when modifications are needed, it is always possible to edit the individual items. No need to redo the whole form from scratch.
    There are some cases, however, in which we have invested a substantial amount of work in Step (2), but we need to modify the underlying image, removing it and replacing it with a new one. We obviously don't want to destroy all the work done in (2).
    I envision the procedure as taking a rug from underneath a person and putting a new one.
    What is involved in doing that? Can that be done at the JavaScript level? Are there commercial packages that can do that? Is the Acrobart SDK required?
    -Ramon

    Document->Replace Pages
    Been in Acrobat since at least version 5.

  • I am an absolute newcomer to Lightroom.  I have downloaded images from camera (OMD EM1) and divided them into folders.  Some folders work ok in Develop mode.  With other folders I get the words "This file could not be found".  What should I do

    As an absolute newcomer to Lightroom 5 I have downloaded images direct from camera (IOlympus EM-1) and divided them into folders. When I go into Develop mode, some folders can be developed ok , but with images from two other folders I get the message "This file could not be found".  What should I do?

    may i suggest opening the files in Olymous Viewer 3  and exporting them (you can do some editing there if you wish or not) asTIFF files. After that you can import the new files into LR. LR seems to like tiiff more than .orf files 
    The advantage to using OV3 is that it seems to do a much better job converting RAW EM1 files. Colors are more accurate ( my red flower pot turned orange when loaded directly into lightroom)
    . The tiff files just LOOK better in LR  after the conversion . there is a youtube on this subject and when i tried it myself i was impressed 

  • Downloading raw images from Canon Rebel XTi and problem with Border FX

    Aperture no longer downloads raw images from my Canon 400D / Rebel Xti and installed Lexar Professional UDMA card. I am able to download images to my Dell laptop. This is a new phenomenon only occurring since about 10 days ago. I am currently able to download images from my Canon 5D.
    Also, my computer has locked up 4 times today when I have been starting Border FX. I have seen a screen saying that I have to restart my computer by holding down the on button. I have the most recent version of the Border FX software.
    Any suggestions please?

    Join the crowd! I just started to experience exactly the same thing on both of my systems. Apparently the latest raw camera drivers broke something related to Canon Rebel cameras. I'm using the Rebel XT.
    I tried a quick experiment the other day. I shot a bunch of test photos forcing the camera to store them as JPEGs. I was able to download those without a problem. I then forced the camera back to raw mode and shot a few more pictures on the same memory card. The JPEGs that I was able to download previously no longer will download and neither will the raw files.
    I tried reverting to the older camera raw driver on my notebook but for some reason it won't let me do that. I haven't tried reverting on the desktop yet.
    Hopefully this problem is fixed quickly. I've got a ton of pictures from a recent vacation I'd like to off load.
    By the way, this affects the iPhoto, Aperture and Image Capture apps.

  • Can you delete images from both the Library and backup folders at the same time?

    Is there a way to delete images from the Lightroom Library module and also have it delete the corresponding file in the backup folder?

    Consider using a regular backup program, or plugin like TreeSyncPublisher which will assure backups are deleted along with sources.
    If you really want no junk in Lr's 2nd copy storage, then delete everything there (or maybe just the older stuff), after making such "true" (synchronizing) backups.
    R

  • Trying to email an image from Lightroom 5.7 and I get the error validation failed to establish connection with email server

    ffailed to establish connection with the outgoing email server.  Yet my email works fine with sending and receiving anything else.

    Your settings will usually be blocked by Google unless you agree to lower your security settings.
    Enter your details as shown in image 1 below and click the validate button.
    You should see a LR message that the server settings could not be authenticated.
    Launch your web browser and go to your Gmail inbox. Look for a message from Google confirming the authorization attempt was blocked.
    Click on the link (highlighted in red) on image 2 below.
    You will need to Click on the link “Allow less secure apps”
    Choose enable
    Click done
    Now go back to LR and click the validate button and your Gmail account should show as validated.
    You can now select a thumbnail from the LR Library and mail it by pressing the keys Control + Shift + M (Cmd+Shift+M on Mac)
    The alternative is to set up Google two step verification and make the security application specific to Lightroom.

  • Can load image from file using LabVIEW and display on IMAQ graph?

    I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?
    Thanks!

    Hey werwr,
    In response to: "I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?"
    As of right now, in order to read an image from file, you actually do need the IMAQ Vision software. The IMAQ driver without the Vision VI's will allow you to collect images from a framegrabber, and it will allow you to save those images to file. But the function that allows you to read an image from file does require the Vision VI's. Once you have the VI to read images from a file, you will be able to display the image on an IMAQ "Graph" or otherwise known as an Image Display.
    I hope this helps. Please let me know if you have any further questions.
    Thanks,
    DJ
    Applications Engineer
    National Instruments

  • Changing Images from CMYK to RGB and file size

    Hello and Thank You in advance...
    I'm new to Keynote and I created a slideshow with CMYK image and it is a certain size. When I resaved the images (same name, same location) and resaved the Keynote document, there is no change in file size. Is there a way to update the images in the slideshow?

    Keynote puts the images INSIDE the .key file.
    The best way to fix this is Control-click on a copy of your .key file and choose Show Package Contents.
    Then select your NEW images in the finder and choose COPY (I know, it sounds weird, but the finder in OS X can use the Copy option to actually copy files).
    Then click into the open .key folder and PASTE. You should get a notice that the images inside the folder already exist and do you want to replace them. Choose yes.
    Close the folder and open the .key file and see if it worked okay.

  • Open Photoshop image from PDF into Photoshop and change cmyk text to 100% black

    when I have a supplied PDF file that has cmyk text, I open the image in Photoshop but I don't know how to change the cmyk text (some very small and some large) to 100% Black. I used to know the short cut key to do this but I can't remember. I used to use the marque tool then use a short cut key that would knock the cmy out of the k. Can some one please tell me how I can achieve this in a flattened photoshop file opened from PDF into Photoshop. Thanks

    One way to do this:
    Use a hue/saturation adjustment layer, click the Colorize box and drag the Lightness slider to -100. The black will go to C:0, M:0 Y:0, K:100. I'm not aware of a shortcut for this, perhaps someone more informed could help there. You would only want to apply it to the text, clipped to a separate text layer ideally, but if your file is already flattened you could apply it via a selection/masking.
    Mike

  • Downloading images from camera into iphoto and getting two of everything

    Is there a reason I'd be getting two copies of each photo I download from my camera into Iphoto? And is there a way of making it stop doing that?
    They're both in the library, right next to each other.
    Thanks.

    HI brvideo,
    What is the make of your camera?
    Does your camera do RAW?
    Does your camera have a setting that will also do a jpeg conversion of the RAW image?
    If so, check the settings for your camera and make sure it is set not to do that.
    Does your camera have a setting where it does an HTML file of your images. This will produce a smaller jpeg thumb. If you have it on that setting, change it.

Maybe you are looking for

  • How to delete "other" space in iPhone?

    I have a 16GB iPhone 4s, I was always wondering why my other family members had so many pictures (1,000+) and so many songs, etc. with the same amount of memory. I always had problems with my phone because I'd have at most 600 photos and I'd get a no

  • Why can't I upload my personal pictures from my photo galary to Photo Shop Touch?

      So I go to upload a photo of mine to edit it and I realize I could images from everywhere except for my own gallery. Am I doing something wrong?...

  • CRM_IC_ERP_BADI

    Hello: We have implemented BADI "CRM_IC_ERP_BADI" by creating a custom implementation. We would like to know how the field values in the ERP Sales Order user interface can be manipulated? Thanks! Regina

  • How can i optimize this query

    SELECT c1,c2 FROM tabla WHERE c1=(SELECT MIN(c1) FROM tabla) (i want to get an unique register which contains the minimum value in the table for the field c1)

  • Could not see object list selector in SE80

    Hi, I could not see <b>object list selector</b> in SE80.  Any body is having idea Please help me. Regards (yugandhar)