How to load a tif image in flex

Hi All,
Is it possible to load a tif image in flex. If it's possible
anyone guide me or send me some code snippets regarding how to
display a tif image in flex.

"flexdharma" <[email protected]> wrote in
news:ga2d96$p8h$[email protected]..
Hi All,
> Is it possible to load a tif image in flex. If it's
possible anyone guide
> me or send me some code snippets regarding how to
display a tif image in
> flex.
Convert it to the much more web-friendly png format.

Similar Messages

  • How to load a boot image to cisco aironet 1140 series after missing boot image

    Hi all,
    I need a solution for this. When i switch my cisco aironet 1140 , it s blinking with red light .and gives a message "no boot image to load".
    When i tried next time, by pressing escape it shows this message that i have mentioned below.
    using  eeprom values
    WRDTR,CLKTR: 0x83000800 0x40000000
    RQDC ,RFDC : 0x80000035 0x00000208
    using ÿÿÿÿ ddr static values from serial eeprom
    ddr init done
    Running Normal Memtest...
    IOS Bootloader - Starting system.
    FLASH CHIP:  Numonyx P33
    Checking for Over Erased blocks
    Xmodem file system is available.
    DDR values used from system serial eeprom.
    WRDTR,CLKTR: 0x83000800, 0x40000000
    RQDC, RFDC : 0x80000035, 0x00000208
    PCIE0: link is up.
    PCIE0: VC0 is active
    PCIE1: link is NOT up.
    PCIE1 port 1 not initialized
    PCIEx: initialization done
    flashfs[0]: 1 files, 1 directories
    flashfs[0]: 0 orphaned files, 0 orphaned directories
    flashfs[0]: Total bytes: 32385024
    flashfs[0]: Bytes used: 1536
    flashfs[0]: Bytes available: 32383488
    flashfs[0]: flashfs fsck took 16 seconds.
    Reading cookie from system serial eeprom...Done
    Base Ethernet MAC address: 28:94:0f:d6:c8:62
    Ethernet speed is 100 Mb - FULL duplex
    The system is unable to boot automatically because there
    are no bootable files.
    C1140 Boot Loader (C1140-BOOT-M) Version 12.4(23c)JA3, RELEASE SOFTWARE (fc1)
    Technical Support:
    Compiled Tue 18-Oct-11 14:51 by prod_rel_team
    So , now my question is how to load the boot image ? From where will we get this ? OR
    I m also having another Cisco aironet 1140 , Can i get bootimage from that . Kindly let me know the solution from genius ?

    Take a look at this link as it should have the info you need
    Sent from Cisco Technical Support iPhone App

  • How to get a .tif image with n different colors?

    Hi..i want to know how can i get a .tif image colored by some colors. I want to do something like this:
    if(tifImage.pixel < 0.1) {
    tifImage.pixel = yellow;
    else if( 0.1 <= tifImage.pixel && tifImage.pixel <0.5){
    tifImage.pixel = red;
    up to n colors.
    I prove the next code, but it is not getting the colors i want.
    public void generateImage(BufferedImage bi,double alto,double medio,String output){
              int width = bi.getWidth(); // Dimensions of the image
              int height = bi.getHeight();
              // Some constant colors (as arrays of integers).
              int[] red = {255, 0, 0};
              int[] green = {  0,255,  0};
              //int[] blue = {  0,  0,255};
              int[] yellow = {255,255, 0};
              //int[] background = { 85, 85, 85};
              int[] background = { 255, 255, 255};
              // The original image data will be stored on this array.
              int[][][] imageData = new int[width][height][3];
              // We'll fill the array with a test pattern bars thingie.
              double[] pixelArray=null;
              for(int w=0;w<width;w++)
                   for(int h=0;h<height;h++)
                             //lo dejo blanco
                             imageData[w][h] = background;
                        else if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=alto){
                             //lo dejo rojo
                             imageData[w][h] = red;
                        else if(bi.getRaster().getPixel(w,h,pixelArray)[0]>=medio){
                             //lo dejo amarillo
                             imageData[w][h] = yellow;
                             //lo dejo verde
                             imageData[w][h] = green;
              // Now we have a color image in a three-dimensional array, where the
              // third dimension corresponds to the RGB components.
              // Convert the color image to a single array. First we allocate the
              // array.
              // Note that this array will have the pixel values composed on it, i.e.
              // each R,G and B components will yield a single int value.
              byte[] imageDataSingleArray = new byte[width*height*3];
              int count = 0;
              // It is important to have the height/width order here !
              for(int h=0;h<height;h++)
                   for(int w=0;w<width;w++)
                        // Rearrange the data in a single array. Note we revert RGB, I still don't
                        // know why.
                        imageDataSingleArray[count+0] = (byte)imageData[w][h][2];
                        imageDataSingleArray[count+1] = (byte)imageData[w][h][1];
                        imageDataSingleArray[count+2] = (byte)imageData[w][h][0];
                        count += 3;
              // Create a Data Buffer from the values on the single image array.
              DataBufferByte dbuffer = new DataBufferByte(imageDataSingleArray,width*height*3);
              // Create an pixel interleaved data sample model.
              SampleModel sampleModel =
              // Create a compatible ColorModel.
              ColorModel colorModel = PlanarImage.createColorModel(sampleModel);
              // Create a WritableRaster.
              WritableRaster raster = RasterFactory.createWritableRaster(sampleModel,dbuffer,new Point(0,0));
              // Create a TiledImage using the SampleModel.
              TiledImage tiledImage = new TiledImage(0,0,width,height,0,0,sampleModel,colorModel);
              // Set the data of the tiled image to be the raster.
              // Save the image on a file.

    I tried that. When I open one image and set the exposure, then go to open the second image, nothing happens. I then saved one image as a psd file, then it would let me open the raw file a second time. When I had both open on the same screen and dragged the layer from one into another image, the layer size ended up being different than the other file. It was shifted down and to the left. I need these images to be pixel locked, and the user experience I went through did not allow me to do this.
    I also do not see a way to copy/paste layers between files.

  • How to load the Employee Images through Script

    Dear All,
    How to load Employee Images into HRMS module through script, Pls provide scripts any body having..
    Thank in advance,
    Edited by: Hanimi on Jun 7, 2011 10:12 AM

    Hi Hussain,
    Following ctl file is working fine for loading images, But problem is at a time it is loading only 64 rows, pls let me know what i have change in my ctl file for loading all data at a time..
    load data
    infile '/usr/tmp/Images_Data.dat'
    table_name constant "PER_PEOPLE_F",
    ext_fname FILLER CHAR(80),
    mage_id "PER_IMAGES_S.nextval"

  • How to load use an image library in the portal pages

    How to load an image library in the portal ? Do I need to load images in an Apache directory and access them via URLs, or do I need to upload images to a specific portal page, and access these images via specific URL ?
    Thanks for your help,

    Another easy method is to create a dedicated page in Portal and use it for the storage of images, flash objects.
    Load the images as item type FILE and use the 'direct access' method (HOST:PORT/pls/<DAD>/docs/PAGE/<PG NAME>/<PAGE_NAME>/IMAGE.GIF)to access the file from a URL command.
    This way all your images are protected in the database, easy to add and find (via search or by adding descriptions, categories etc) via role based security and in theory should be quicker to access (via the URL) due to the indexing capabilities of the database.
    Place the images in a location that is not going to cause a page navigation issue such as in its own Page Group or as sibling page to your top level parent page etc.
    Hope this helps.

  • How to load a background Image on a JDialog object

    Hi All, Actually i am new to java programing and i am stuck in this problem. I am developing a java application which is dialog based (using JDialog objects) and i want to load a background image on my dialog. I hope this could be done and i really appreciate your help because i must deliver this project and this is a user interface requirement.

    Try something along the lines of this: Create a new class called BackgroundImagePanel and have it extend JPanel.
    Have an attribute in the class for your image, and a method to set it.
    Override isOpaque() to return true.
    Override the paintComponenet method as such:
    public void paintComponent (Graphics g) {
    if( image == null ) return;
    Icon icon = new ImageIcon(image);
    icon.paintIcon(this, g, x, y);
    Add this panel to your JDialog and then add other component to this panel.
    You might have to tweak this a bit, but it should get you close...

  • How to load a PNG image from a location in CF card

    I am using WTK 2.5.2. I wanted to load a PNG image to Image object. The image is loaded when I have it in the classes folder. But I want to select different image from a different location. If I try to open an Image to createImage(String) from a different location, I get IOException.
    Please help me.
    Deekshit M

    I got the answer, I should be using Image.createImage(InputStream) API. It works fine.

  • How to load svg (vector) image dinamicaly.

    I tryed to load dinamicaly an image svg (.ai) into flash but I can't.
    At my level:
    1) I know that flash can't import .svg file but it is possible convert svg in Adobe ilustrator .ai file;
    2) I can import .ai file in flash with no problem;
    3) I can load dinamicaly external  .jpg file with no problem;
    If I try to load dinamicaly  .ai file in the same way that I use to load  .jpg file I get this message:
    Error #2044: Unhandled ioError:. text=Error #2124: Loaded file is an unknown type. URL: file: .....
    Is there any way to solve this problem?
    Can someone help me?
    Thank you.

    you can use the urlloader class to load the svg but it won't display an image until you parse the xml, Using SVG as a level design format - Zeh Fernando

  • How to load a large image for display on the Palm PDA

    I have a large image I would like to display on LV for Palm PDA. The documentation states there should be a 64K chunk limitation for VIs to compile on the Palm. Therefore, I decided to break this image up into 2D arrays of less than 64K per subVI. My 3.2 Meg image therefore has about 224 2D array subVIs. My motivation is to somehow use the build array function (with concatenate inputs) to reconstruct the image at runtime. I can compile each 2D array subVI as a test, but my attempt to reassemble and compile is futile. When I try to use the build array with only 8 of these subVIs in a top level VI the compiler complains its still too big of a VI. Using get info, memory for this top level states total ~2
    3K of memory usage.
    So can someone help me with this problem. Is there another way to load this size of an image into memory so I can display it on a picture control?
    BTW, this can build on LV for PocketPC.
    Thank you

    Hi Robert,
    You are correct in that one of the limitations of the Palm OS is that files cannot be larger than 64 KB in size (as stated on page 5-3 of the LabVIEW PDA Module User Manual). The suggested workaround is indeed to have a top-level PDA VI that calls subVIs, and this top-level VI can then have a total file size larger than 64 KB.
    My suspicion is that with the picture control on the Palm OS, even if you are breaking up the image into smaller subVIs, the process of building the array to reassemble the picture is still forcing the Palm to allocate memory for each of those 2D array subVIs to place on the top-level VI's picture control
    and thus causing the Palm to complain about not having enough memory. The LabVIEW PDA User Manual also states that "There is a total limit of 64 KB on all front panel array data". Thus, when you are trying to use the build array on the top-level VI, the 64 KB limit on front panel array data is still being exceeded -- even with only 8 of these subVIs.
    The following KnowledgeBase article KB 38EJRHFQ: How Do I Put a Picture or Image on My LabVIEW PDA for Palm Front Panel? states that as a workaround, you can shrink the size of your image by using 4-bit or 1-bit data instead of the standard 8-bit pixmap representation.
    This is really just a limitation of the Palm OS and the fact that there is simply no way of displaying that much front panel information for your picture. Either way, you would need to build up the array of pixels for your bitmap, and for a 3.2 MB image, I don
    't believe there is any way for the Palm OS PDA to display the image in its entire at once.
    Sorry about that...
    Kileen C.
    National Instruments

  • How to load a .bmp image

    I'm using jdk1.4 and full-screen mode and I want to load an image but I don't manage to do it. how can I do it?

    Check out this category:

  • How to load a jpeg image in to a database from a flex2 app

    how ouwld I browse the local fie system, select a jpeg image
    and then save
    it to a database using flex2?
    Anybody know of some sample code that I can look at?

    Hi Thamis,
    Take a look at the class here:
    This is the built in Flash support for file upload. You'd
    handle the upload with a servlet/jsp/etc. server-side component to
    save it to disk or as binary data in a database.

  • How to load lots of images synchronously

    HI all,
    I want to cache lots of images locally with URLLoader and need to know those fails. I can add listener to event IOErrorEvent.IO_ERROR.
    A variable can be used to save the file name I want to load last time. Then in the error handler I can know which file is not loaded correctly.
    However, since images are loaded asynchronously, which is how URLLoader works, the firstly loaded image may not the firstly completed. That means the variable may contain incorrect file name.
    Is there a better way to approach? I just want to log the error loadings.

    You can load Image one by one so when one finishes or load successfully you can trigger the load on the next one. How are you loading multiple images anyway you using a bulk loader class or multiple url loaders?

  • How to load series of images?

    I am trying to load a sereies of pictures moving accross the top from right to left.  How do I load all of these photos in such a way that they seem to be stitched together like a piece of film strip at certain rate going accross?

    you could also do something like this - I used this for doing something very similar to what you explained:
              public var menuImageArrayURL:Array = ["images/mainMenu/01.jpg", "images/mainMenu/02.jpg", "images/mainMenu/03.jpg",
                                    "images/mainMenu/04.jpg", "images/mainMenu/05.jpg", "images/mainMenu/06.jpg",
                                    "images/mainMenu/07.jpg", "images/mainMenu/08.jpg", "images/mainMenu/09.jpg",
                                    "images/mainMenu/10.jpg", "images/mainMenu/11.jpg"];
              var b1:Sprite = new Sprite();
              var b2:Sprite = new Sprite();
              var b3:Sprite = new Sprite();
              var b4:Sprite = new Sprite();
              var b5:Sprite = new Sprite();
              var b6:Sprite = new Sprite();
              var b7:Sprite = new Sprite();
              var b8:Sprite = new Sprite();
              var b9:Sprite = new Sprite();
              var b10:Sprite = new Sprite();
              var b11:Sprite = new Sprite();
              public var arrayLoaders:Array;
              public var imageLoader:Loader;
              public var imageHolder:Sprite;
              public function placePictures():void {
                   var ba:Array = new Array();
                   for(var i:uint=0;i<ba.length;i++) {
                        trace(name + ba[i]);
                        ba[i].name = i;
                        imageLoader = new Loader();
                        imageLoader.load(new URLRequest(menuImageArrayURL.shift()));
                        imageLoader.x-= imageLoader.width/2;
                        imageLoader.y-= imageLoader.height/2;
                        imageHolder = new Sprite();
                        imageHolder.x = 0;
                        imageHolder.y = 0;
                        ba[i].x = 0 + i * 150;
                        ba[i].y = 0;
    thats just for the loading of the pictures. if you understand that or need some help in understanding I can see what I can do to help you. then after that I can tell you how I would make them move across the stage.

  • How to Load a html page into Flex the application?

    I want to load separate html page in to my flex application.
    for example
    think I am in my shopping cart and I wanna buy something and pay for that.Then I am try to pay they will load a separate html page into my shoipping cart.
    How can I do that inside flex application?
    Any ideas are appreciated..

    Hi snkd,
    You need to make use of iframe to load html content in Flex application.
    Check out the link below...there is also source code included..

  • How do I stop .tif images being converted and compressed to .jpeg?

    I'm not sure what is going on here but when I add a high res .tif picture to iWeb it will display correctly until I publish the website.
    Once the website is published I the high res .tif picture suddenly becomes a low res .jpeg picture and looks ruddy awful.
    How do I stop iWeb from downscaling the resolution?

    Tiff files are notoriously large which is why it may not be supported - have you tried converting to PNG as this is also lossless and was developed for saving highly detailed images where loss of quality was unacceptable. PNG should be supported I have used them for transparent graphics. Also it may be because you put them in an image placement or album rather than straight on the page. Other than that I can't help. I use jpegs for ordinary images and haven't noticed too much loss of quality but it depends on the purpose of your site.
    You could always upload the image separately and make a link to the page in iweb, or embed in iframe, just doing some lateral thinking here.
    Experiment and see what happens, thats the fun of learning new things.

Maybe you are looking for

  • Okay, new computer, I have backup CDs, but there's a problem...

    When I put the first backup cd in, nothing happened. When I opened the CD/DVD drive, a box appeared on screen saying, "The disc 'Backup 2010-03-18' cannot be read.An unknown error occurred.(-53)" I have an old backup, but that one actually works, the

  • How to enter BIOS on Portege M300?

    Which Key(s) are to be pressed during cold Boot after power ON to access CMOS (aka BIOS) Setup / Settings on M300. Can I download user manual of M300?

  • New mail not coming in

    As of late morning. Message are on the server (iCloud) and on iOS but Apple Mail on Mac is blind since 10AM. Anyone else?

  • Facebook pictures not loading

    Hi, I am sorry about that. I did not catch that on your original post. We would like to further investigate this issue. For anyone experiencing this issue and have tried changing the DNS and disabling IPv6, please send us a detailed message by clicki

  • Robot class.

    With the robot class. I know their is the standered clas and then the Robot(GraphicsDevice screen) . Yes i know that the graphic device is for specifying another screen. But do u belive their is any thinkable way to specify to a specific window activ