Problem on loading EPS image

hi again :)
i'm trying to load an image (EPS format) on a JPanel like i've done with GIF or JPG , those don't cause any problem, but when the image is an EPS one nothing is loaded how can i do this ?
Thanks

is there any answer or suggestion please
thanks

Similar Messages

  • Problem in Loading Multiple image in Single Sprite/MovieClip

    Hi All,
    I am having a killing problem in loading multiple images in single movie clip/sprite using a separate class.
    Here is the ImageLoader.as class
    package com.project.utils{
        import com.project.*;
        import com.project.utils.*;
        import flash.events.EventDispatcher;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        import flash.display.Loader;
        import flash.events.IOErrorEvent;
        import flash.net.URLLoader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        import flash.display.Bitmap;
        public class ImageLoader extends EventDispatcher {
            public var imgloader:Loader;
            public var imgMc:MovieClip;
            public var imgObject:Object;
            public var loaded:Number;
            public function ImageLoader():void {
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
            public function loadImage(imgHolder:MovieClip, imgObj:Object):void {
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
                imgMc = imgHolder;
                imgObject = imgObj;
                imgloader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImgLoad);
                imgloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onImgLoadProgress);
                imgloader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onImageLoadFailed);
                imgloader.load(new URLRequest(imgObj.FilePath));
            private function onImgLoad(Evt:Event):void {
                var image:Bitmap = Bitmap(Evt.target.content);
                try {
                    imgMc.removeChildAt(0);
                } catch (error:Error) {
                imgMc.addChild(image);
                try {
                    if (imgObject.URL != undefined) {
                        imgMc.buttonMode = true;
                        imgMc.removeEventListener(MouseEvent.CLICK, onImageClicked);
                        imgMc.addEventListener(MouseEvent.CLICK, onImageClicked);
                } catch (err:Error) {
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD"));
            private function onImageClicked(evt:MouseEvent):void {
                trace("Image Attrs:"+imgObject.URL +" Target "+imgObject.Target);
            private function onImgLoadProgress(Evt:ProgressEvent):void {
                if (Evt.bytesLoaded>0) {
                    loaded = Math.floor((Evt.bytesLoaded*100)/Evt.bytesTotal);
                    dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_PROC",loaded));
            private function onImageLoadFailed(Evt:IOErrorEvent):void {
                trace("Image Loading Failed");
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_FAIL"));
    Here I am loading some images using the above class in a for loop, like
                for (var i=0; i < 3; i++) {
                    //imgLoader=new ImageLoader;
                    imgLoader.addEventListener("CustomEvent.ON_IMGE_LOAD",onImageLoad);
                    var target:MovieClip=videolist_mc["list" + mcCount + "_mc"];
                    target.list_mc.visible=false;
                    var imgObj:Object=new Object;
                    imgObj.FilePath=list[i].Thumbnail;
                    imgObj.Url=list[i].Url;
                    imgObj.Target=list[i].Target;
                    target.list_mc.urlObj=new Object  ;
                    target.list_mc.urlObj=imgObj;
                    imgLoader.loadImage(target.list_mc.imgholder_mc,imgObj);
                    target.list_mc.lable_txt.htmlText="<b>" + list[i].Label + "</b>";
                    target.list_mc.imgholder_mc.buttonMode=true;
                    target.list_mc.imgholder_mc.addEventListener(MouseEvent.CLICK,onItemPressed);
                    mcCount++;
    In this case, the ImageLoader.as works only on the last movie clip from the for loop. For example, if i am trying to load three image in three movie clips namely img_mc1,img_mc2 and img_mc3 using the for loop and ImageLoader.as, I am getting the image loaded in the third movie clip only img_mc.
    See at the same time, If i uncomment onething in the for loop that is
    //imgLoader=new ImageLoader;         
    its working like a charm. But I know creating class objects in a for loop is not a good idea and also its causes some other problems in my application.
    So, help to get rid out of this problem.
    Thanks
    -Varun

    package com.project.utils{
        import com.project.*;
        import com.project.utils.*;
        import flash.events.EventDispatcher;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        import flash.display.Loader;
        import flash.events.IOErrorEvent;
        import flash.net.URLLoader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        import flash.display.Bitmap;
        public class ImageLoader extends EventDispatcher {
            public var imgloader:Loader;
            public var imgMc:MovieClip;
            public var imgObject:Object;
            public var loaded:Number;
            public function ImageLoader():void {
    // better add you movieclip to the stage if you want to view anything added to it.
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
            public function loadImage(filepath:String):void {
                imgloader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImgLoad);
                imgloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onImgLoadPr ogress);
                imgloader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onImageLoadF ailed);
                imgloader.load(new URLRequest(filepath));
            private function onImgLoad(Evt:Event):void {
                var image:Bitmap = Bitmap(Evt.target.content);
                try {
                    imgMc.removeChildAt(0);
                } catch (error:Error) {
                imgMc.addChild(image);
                try {
                    if (imgObject.URL != undefined) {
                        imgMc.buttonMode = true;
                        imgMc.removeEventListener(MouseEvent.CLICK, onImageClicked);
                        imgMc.addEventListener(MouseEvent.CLICK, onImageClicked);
                } catch (err:Error) {
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD"));
            private function onImageClicked(evt:MouseEvent):void {
                trace("Image Attrs:"+imgObject.URL +" Target "+imgObject.Target);
            private function onImgLoadProgress(Evt:ProgressEvent):void {
                if (Evt.bytesLoaded>0) {
                    loaded = Math.floor((Evt.bytesLoaded*100)/Evt.bytesTotal);
                    dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_PROC",loaded));
            private function onImageLoadFailed(Evt:IOErrorEvent):void {
                trace("Image Loading Failed");
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_FAIL"));
    Here I am loading some images using the above class in a for loop, like
                for (var i=0; i < 3; i++) {
                    var imgLoader:ImageLoader=new ImageLoader();
                    imgLoader.addEventListener("CustomEvent.ON_IMGE_LOAD",onImageLoad);
                    var target:MovieClip=videolist_mc["list" + mcCount + "_mc"];
                    target.list_mc.visible=false;
                    var imgObj:Object=new Object;
                    imgObj.FilePath=list[i].Thumbnail;
                    imgObj.Url=list[i].Url;
                    imgObj.Target=list[i].Target;
                    target.list_mc.urlObj=new Object  ;
                    target.list_mc.urlObj=imgObj;
                    imgLoader.loadImage(pass the image file's path/name);
                    target.list_mc.lable_txt.htmlText="<b>" + list[i].Label + "</b>";
                    target.list_mc.imgholder_mc.buttonMode=true;
                    target.list_mc.imgholder_mc.addEventListener(MouseEvent.CLICK,onItemPressed);
                    mcCount++;

  • Problem with loading an image via HTTP

    Hallo,
    When using the JBCL TransparentImage control i can load images
    from my local HD. But when i use setImageURL it won't work. I
    looked at the sources and it seems to me that the problem lies
    within the default toolkit. The following code works when using
    a local file. Via HTTP the Observer get's one notification with
    just the error-flag set.
    URL url=new URL("http://localhost/mxtj_inetmaps/mp_map1.gif");
    // String sFileName="c:\\mapinfo\\inetmap\\mp_map1.gif";
    Toolkit tk=Toolkit.getDefaultToolkit();
    Image i=tk.getImage(url);
    // Image i=tk.getImage(sFileName);
    MyObserver mo=new MyObserver();
    tk.prepareImage(i, -1, -1, mo);
    Could someone help me, how to show a Web-Image within a control ?
    Bye Heiko.
    null

    Hi,
    There is no getImage that accepts the parameters in the order in which you have given them. Try this:
    getImage( getCodeBase(), "flower.gif" );
    Regards,
    Manfred.

  • Problem in Loading apex images during the installation

    This is the state now......
    SQL> @apxldimg D:\apex
    PL/SQL procedure successfully completed.
    old   1: create directory APEX_IMAGES as '&1/apex/images'
    new   1: create directory APEX_IMAGES as 'D:\apex/apex/images'
    Directory created.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    declare
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kzxcInitLoadLocal-7], [64131],
    [ORA-64131: XMLIndex Metadata: failure during the looking up of the dictionary
    ORA-30966: error detected in the XML Index layer
    ORA-31011: XML parsing failed
    ORA-06512: at "XDB.DBMS_XDB", line 437
    ORA-06512: at line 39
    Commit complete.
    timing for: Load Images
    Elapsed: 00:01:49.69
    Directory dropped.
    SQL>
    anyone can help meee ?????

    Hi!
    Even not knowing which platform you are working on, first off try to create a file in the directory you are unpacking to. (create an empty textfile in windows or "touch test" when using unix). If this works, you need to check if your user got permissions to overwrite/delete the files in the kernel directory.
    If touch fails then you need to adjust the permissions of the directory itself you are working in.
    Also make sure the files are not in use.
    Regards
    Edited by: Christian Kaunzner on Dec 2, 2008 12:27 PM

  • Problem while loading kernel image through Jtag (on ZEDBOARD)

    Hi all,
    I am trying to  boot kernel image on the Zedboar via Jtag.
    But while running the "run netboot" i am getting the following error
    "wrong image format for bootm command"
    ERROR: can't get kernel image
    I just enclosed the console Screenshort.
    I am requesting to suggest some solotion for the above problem.

    
    Try re-building the image and see if that helps.
    Can you try booting the image using bootm commands and see if you are able to boot?
    Example:
    uboot> tftpboot 0x1000000 /tftpboot/image.ub
    uboot> tftpboot 0x2000000 /tftpboot/urootfs.cpio.gz
    uboot> tftpboot 0x3000000 /tftpboot/system.dtb
    uboot> bootm 0x1000000 0x2000000 0x3000000
    For details steps refer to details in the link
    Regards,
    Achutha

  • Problem with loading big image files in 1.4

    Hi, I recently discovered that after updating my jdk from 1.3 to 1.4, my application seems to be failing to display image files over 300kbytes, or at least the display is corrupted.
    Originally I have a gif file over 300k (2048X512 pixels) and the display got corrupted, but when i reduced the file (1024X512) the display did not corrupt.
    Is there any way other than to cut the filesize of the image??
    ~Jeffrey

    I know that focus management has changed alot.
    Based on my experimentation a while back, in 1.4 it still believes that the JFrame is the window in focus, even though a JOptionPane is currently in front of it (unless I misinterpreted what was going on). Thus, the frame seems to get the keyboard event and re-invoke the action.
    A.F.

  • Loading large images

    Hi there,
    I'm facing lot of problem while loading large image (25+ MB JPG/TIFF) in editor pane using ImageIO. I always get OuofMemory exception or my machine (p4 2.4ghz/512 ddr) get hangs. Is there any way to load large images within a moment in Java? I have seen one s/w (written in vc++) that do the same. I'm trying to replicate that s/w.
    Is there any 3rd party Java API to do the same? Have you guys develop similar s/w before?
    I've tried many ways: by changing heap size, using ImageMagick, spliting the image, etc. but never get satisfactory results.
    Any help would be appreciated.
    Thanks in advance.
    -tamal

    You can use Java Advanced Image
    http://java.sun.com/products/java-media/jai/downloads/download-1_1_2.html
    this will avoid the out of memory error.
    I use it to read and show 20K*20K pixel images.
    the loading is immadiate.
    If you use javax.media.jai.widget.ScrollingImagePanel (deprecated) class to visulize the image is quite quick.
    Obviouse that if you want to visualize the entire image you will need to wait an approprite time for rescaling it.

  • (newbie) - Loading an image in JFrame

    Hi All,
    I have a problem with loading an image on JPanel. Can somebody explain the procedure? Should I use a canvas or something?
    Thanks,
    Deepak

    kanad wrote:
    Try this
    ImageIcon icon = new ImageIcon("backUp.gif");
    JPanel panel = new JPanel()
    protected void paintComponent(Graphics g)
    g.drawImage(img.getImage(), 0, 0, null);
    super.paintComponent(g);
    If you're going to go the "custom JPanel" route as above, don't create an ImageIcon just for its Image. Instead grab a BufferedImage from javax.imageio.ImageIO and draw that directly in your paintComponent() override.

  • Problem loading vector EPS images

    Hello All-
    I'm having trouble loading vector EPS files (created in Adobe Illustrator CS2) in the data manager (version 5.5.34.46). I have Photoshop CS2 installed and have run the registry compatibility update. When I select the image to add to my data group, Photoshop launches (usually..) to load the preview image but when I say OK, I get one of the following errors:
    1. Illegal value for parameter (within Data Manager)
    2. Unspecified error (within Data Manager)
    3. Microsoft Visual C++ Runtime error (within Data Manager)
    4. Virtual function call failed (within Photoshop)
    I am able to load TIF images although the preview images do not display correctly but I do not want to rasterize my existing vector EPS files.
    After setting the images to RGB color space, I was able to do 2 or 3 EPS imports but it took several attempts and has since not functioned at all. The properties on these files show that they are in fact vector and they work downstream in Publisher and InDesign. This is how I'd like them all to work.
    Any suggestions on how to make this work? Are vector EPS files supported?
    Thanks
    Tim

    Tim-
    Before upgrading to the latest hotfix, I did get a couple vector EPS files to load, and the preview did exist in Data Manager and Publisher. Trouble was, I couldn't consistently load the images without errors. Now I can load the images, but lost the preview. For the time being, this is the lesser of 2 evils.
    I do not have any variants defined at this point so I can verify that linked images do NOT get published to InDesign (unless there is another setting I haven't found to force MDM to use Originals).
    All of the raster graphics I tried (TIF & JPG) work just fine in Publisher and InDesign but as you probably know, vector graphics are the smaller and produce better results for DTP applications so they are preferred, if the choice is available.
    If you're going to load SP05 right away, please post any findings that relate to these issues.
    Thanks for your help.
    Tim

  • When I try to load an image from the scanner, or from a file, into a bank deposit script, I get a message - "Error Java heap space". Need help to diagnose and fix this problem.

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

  • Problem in loading images at runtime

    hi ~
    I am facing some problem in making a dynamic flash
    application. Actually i have to loading certain images from a
    remote database at runtime into a pre-existing flash file. i have
    tried it by putting static images and converting them movie clips.
    urgent help required.
    Thanks,
    Varun TEkriwal

    you want to load an image? you want to load an mc? first step
    in successful coding is asking the right question.
    and your question was?

  • Problem in loading images when i am connected on company network

    Hi friends, I am using firefox since last 4 months on my windows 8 pro laptop.but since last month I am facing problem in loading images when i am connected on company network but same time it is working fine with ie10. But all these thinks are working well at my home when I am using broadband.

    I don't completely understand your issue. Does this issue occur on 1 network and does not occur on another? Have you tried clearing cache and cookies and making sure your plugins are up to date?
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • I have a problem with loading the PNG image

    I have a problem with loading the PNG image from site. For ex. go to icefilms com and is starts to load png like crazy CPU is huge and you can not shut down Firefox at least a minute. This is not just in this site but whit any one whit lots of pictures.
    Image from firefox: Picture [http://img836.imageshack.us/img836/9910/7312011103147pm.jpg 1] [http://img28.imageshack.us/img28/8505/7312011103249pm.jpg 2] [http://img706.imageshack.us/img706/5615/7312011103348pm.jpg 3 ][http://img827.imageshack.us/img827/8483/7312011103533pm.jpg 4]
    This is my Task Manager [http://img217.imageshack.us/img217/5715/7312011103621pm.jpg 1]
    - I try safe mode, same thing
    -All addons and plugins are ok
    Any idea why is this so big problem.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • Problem with loading Binary Stream as image

    Hi all,
    I'm facing problem of loading Binary Stream as image.
    from source system we are getting image in XML file as string (i.e binary stream).
    Now i want to load that string again into table as BLOB. i am able to load in to BLOB column but not able to view image properly. it's giving error like "Image has not been decoded properly from binary stream".
    How can i solve this issues?
    Any help.
    thanks in advance.
    Vinay

    michali7x4s1 wrote:
    Thats a code i found somewhere, tried to check how some things work.Have you used exceptions before? If not, please read the sun tutorial on them as they are very very important. Also, whether this is your code or someone else's doesn't matter as it's yours now, and you would be best served by never throwing out exceptions as is done in this code. It's like driving with a blindfold on and then wondering why you struck the tree. It's always best to go through the tutorials to understand code before using it. If it were my project, I'd do it in Swing, not AWT. Fortunately Sun has a great tutorial on how to code in Swing, and I suggest you head there as well. Best of luck.

  • Problem with loading image

    Hi
    I cant able to load the image my code is so simple whats the
    problem please help me........
    when me using the image tag its able to load but while using
    from the script its unable to load why??
    but i want it to be loaded in the same
    format..........(D:\images\azshear\SHAR-29-10-2006-21.0.jpg),is it
    possible??

    You need to use a double slash to escape the source attribute
    in the function. Unfortunately you cannot use the escape global
    method because it ignores the slash character.
    img.source="D:\\images\\azshear\\SHAR-29-10-2006-21.0.jpg";
    Another way to code this is to use a forward slash instead of
    a double back slash.
    img.source="D:/images/azshear/SHAR-29-10-2006-21.0.jpg";
    It works for the Image tag because the image tag will escape
    the slash character

Maybe you are looking for

  • Why do I get -18001 Errors using Customised TestStand User Interface

    Hi all I have a problem when attempting to run my application on my host NT PC. I have a customised operator interface to TestStand written using Labview 5.1.1 and built using the LabVIEW application builder. I am running the TestStand Development (R

  • Items in Library mysteriously disappeared

    All of the items (movies, songs, purchased from the Store or not) from my Library were gone once I opened iTunes one day. I have absolutely no idea why. I connected my iPod and my computer responded as if it were being connected for the first time. H

  • Ipod unable to upload

    I plugged my ipod into my computer and I went through the same process I always do when I wish to put songs and videos on it. Unfortunately my songs and videos are no longer uploading and instead the ipod flashes these words. "The Ipod 'Owner's Ipod'

  • Opening interaction center webclient

    Hi Gurus, When i try to open crm ic webclient with using transaction "crm_ic", i see all the ic profiles but when i choose one of them, only "reject" and "warm transfer" buttons are displayed and just writing "loading...". What can i do for this? tha

  • My iphone shows the itunes plug in but is not recognized; cannot get phone to do anything now!

    My iphone 4 shows the itunes plug-in but is not recognized in itunes.  Now it appears locked and I can't get it to work at all. Help!