Is it possible to use non gif/jpg images in Swing?

hi,
is it possible to use bmp, png or other formats in Swing (eg as part of ImageIcon) without using the imaging libraries?
I can't find anything in the docs but was hoping its supported somewhere?
thanks,
asjf

I know you can load and display a PNG image just the way you do for a GIF/JPEG one :
ImageIcon myIcon = new ImageIcon("my_icon.png");but I don't think many others formats are recognized by j2se... you can simply try to load a BMP file to find out.

Similar Messages

  • Using non-square template images

    Is there any possibility of using non-square templates in IMAQ Match Color Pattern? For example, I need to find predefined circle in the image, but in case of using it as a template, it will be surrounded with zero pixels. Would it influence on searching results?

    To do color pattern matching, you will always have a rectangular template image.  Depending on your application you may want to try doing geometric matching to limit your image to only that portion that you are wanting to search through.
    Regards,
    Jasper S

  • Possible to use non-AT&T wireless card with iPad??

    Thinking of getting an iPad, however I travel frequently and after looking at the outlandish prices for international data plans, I am about ready to give up on the idea. Anyone know if it is possible to use a non-AT&T wireless card with the iPad? I'm guessing there would be a compatibility issue of some sort.

    The 3G iPad is not locked to a particular service provider. You can get a local Sim card and data plan in many countries. This article will give you some idea of what's available: http://gigaom.com/2010/05/10/ipad-data-plan-guide/

  • Possible to Use Animated GIF as Rollover Image?

    Before I spend a lot of time on development...does anyone
    know if it's possible to use an animated GIF as a rollover image in
    Captivate? I'm developing an e-Learning course for a
    Sarbannes-Oxley application, and I want to be able to hover over an
    object, then have a rollover graphic describe the hover target in
    more detail...the catch being that I want the description to look
    like a scrolling stock ticker.
    I'm sure Flash is probably the ideal development environment
    for this idea, but that project is way beyond my Flash skills at
    this point...
    Thanks!

    I know you can load and display a PNG image just the way you do for a GIF/JPEG one :
    ImageIcon myIcon = new ImageIcon("my_icon.png");but I don't think many others formats are recognized by j2se... you can simply try to load a BMP file to find out.

  • Getting Colour and Visual Consistency in a Multi-gif/jpg Image

    Hi All,
    I'm frequently creating .gif and .jpg images for web ads and these have to be within a strict 40KB size limit which is often tricky for larger formats. Now a new 'fireplace' format has been created that is an ad that is an image frame around the sides and top of a web page, consisting of two vertical pieces each side of the page and a horizontal bar along the top that links both the side pieces into a single seamless image. This means that I have to create three separate image files, each of which has to be less than 40KB and because each of these pieces is also quite large I will have to carefully adjust the images settings in 'Save for Web and Devices' to get the file size within this limit. My main problem, however, is how do I do that whilst ensuring that the visual consistency between the images is such that it isn't noticable where the three separate pieces join?
    For example, if the side pieces have radically different style and colour of content to each other and the top part, saving these as separate .gif files could result in each file having a different indexed colour palette and number of colours etc, making the separate pieces look visually different and the places where they join look really obvious and clumsy.
    What steps do I take to keep within the file size for the images whilst keeping the images looking seamlessly consistent? This isn't as much of a problem in .jpg but there may be times when using .gif is more efficient - is there a way to save an indexed colour palette for .gif and apply it across multiple files? Any tips on handling files like this would be very helpful.
    The master file is created as a single image in Photoshop CS4 and later split into three files which are saved as .gif or .jpg.
    Any help would be appreciated!
    Kw

    What about using slices which can be previewed all at once in Save for Web?

  • Is it possible to use non-transacted AQ/JMS QueueSession

    I have been trying to make a WebLogic MDB to listen to an AQ Queue but run into a problem that Oracle AQ does not seem to support non-transacted QueueSession. For further details about my problem, please see:
    http://marvel.oracle.com/pls/otn/f?p=17000:8:141022503303280030::NO::F17000_P8_DISPLAYID,F17000_P8_CRITERIA:40460583213,
    If you have a solution, please post it here or at Cameron O'Rourke's DevTrend website. Thanks.
    Eric Ma

    Have you posted source code and configuration
    instructions? I just posted some sample code at
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jms&item=12376&utag=

  • Why can't I import non photographic jpg images into iPhoto?

    I'd really love to use this feature as I have some vector based jpgs I'd loive to sue in a calendar! They are now jogs but when I try to import them it says
    " the file could not be imported" import failed

    What color profile are these pics? This kind of issue is often caused by importing CYMK or Greyscale pics to iPhoto which only supports RGB.
    Try open the pic in Preview, then use the Tools -> Inspector to check the color profile.
    Regards
    TD

  • Is it possible to use a multi-colored image (red tomato with green stem) as a rollover indicator for button selection for a DVD in encore

    Have 6 Buttons and would like to use a red tomato with a green stem to indicate that button is being rolled over and selected?

    Short answer - No. Two long answers - yes and yes.
    Highlights can be only single color (two bit indexed color) and your image is not.
    However, you can have up to 3 highlights using different colors for each one. So edit your image so you overlay 3 different colors (in photoshop layers, =1, =2, and =3). I would probably try the bottom layer as the red ball; then the white reflection, and then the green on top. When the highlight is active, all 3 colors show.
    The other method is to use autoactivate (on a button) to go to a different menu that changes the image in the background for that button.  You create multiple menus, with an ordinary state for all buttons in all menus, except for the "highlight" different for the "selected" button. Mouseover won't autoactivate, so this doesn't work on a  computer the way you'd like.

  • Using non-administrator user to start/stop services

    We have Crystal Report Server (BOE XI) running on Windows platform.
    Our customer's policy dictates that operator ID are to be use to manage starting/stopping of Crytal Report Server. The operator ID has no administrator rights and it has no access to the Microsoft Management Console.
    Would it be possible to use non-administrator ID to start/stop Crystal Report Server services? Appreciate if anyone could share on the configuration.
    Thank you.

    salafrance wrote:A simple way would be to write a small C program to run systemctl setuid root.
    So perhaps like this?
    #include <stdlib.h>
    #include <unistd.h>
    int main(void)
    execl("/usr/bin/systemctl", "systemctl", "start", "calibre", NULL);
    return(EXIT_SUCCESS);
    compiled it, then "chown root:root test", "chmod u+s test" and it worked.
    But is this safe? I have absolutely no knowledge about potential security issues...
    I also have thought about periodically restarting calibre, but on the Raspberry Pi, with it's slow ARM, the start takes ages and the processor is completely busy with that task for some minutes.
    And that's the reason why I also want to avoid starting an entire second systemd session... Or is this not that resource intensive?

  • Premier pro cs6: how to use 400 jpg images to make a movie?

    I want to use about 400 jpg images to make a movie.  is there a way to add them to a sequence in a random order?

    I'm not aware of a randomize feature either, but here is a suggested workflow that may make it easier than shuffling 400 images around in Premiere:
    Open your images in Bridge
    Move them around to meet your random requirement
    Highlight all images (Ctrl-A)
    Right-click / batch rename and add a sequence number to the front of each name (I like to add a text "_" too) and copy the resulting set of images to an empty directory
    Import the whole directory into Premiere
    Automate to timeline
    I used to use Liquid and it had a wonderful freestyle way to pre-order your clips or images prior to dumping them onto your timeline, and the above workflow is how I have come to approximate the same.
    Regards,
    Jim

  • Using Nikon D5200 NEF images in PSE

    Hi
    I currently have PSE8 which will not read the NEF images from my Nikon D5200. I know that I can use the Adobe DNG Convertor 7.3 to convert them to DNG outside of PSE8 then work with the DNG images in PSE8. However, I would prefer, if possible, to work directly with the NEF images as a plugin.
    This article:
    http://helpx.adobe.com/x-productkb/global/camera-raw-compatible-applications.html
    states that the current PSE11 can only support the Raw Camera Plugin up to 7.2. This article:
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    indicates that the Nikon D5200 requires the Raw Camera Plugin 7.3.
    Q1 - Based on the above am I therefore correct that it is not currently possible to use Nikon D5200 NEF images directly in any currently available PSE?
    Q2 - If, the answer to Q1 is Yes does anyone have a feel for whether its likely in the next version of PSE? Or would I have to save up for the full Photoshop program to do what I want?
    Thanks
    Jetta
    Microsoft MVP

    The first link is out of date.
    Yes, photoshop elements 11 supports camera raw 7.3
    You should be able to update pse 11 to camera raw 7.3 by going to Help>Updates from within the pse 11 editor if you should decide to trial and/or purchase pse11.

  • HT1178 is it possible to use a 4th generation Time Capsule to extend a non-apple network?

    Is it possible to use a 4th Gen. TC to extend a non-Apple (Netgear N600) network?

    No, not if you are asking about extending the network wirelessly.
    If you can connect the TC permanently to the Netgear router using a wired Ethernet connection, then the TC can be setup to provide more wireless signal coverage that way.

  • Is it possible to use variant configuration (with a Non-SAP solution) when creating ERP sales orders in SAP CRM WebUI

    Hello,
    our customer plans to use a Non-SAP solution for variant configuration (Camos) in SAP ERP (ECC 6.0) and in SAP CRM 7.0 EHP1 as well.
    ERP sales orders (and ERP quotations) should be created in SAP CRM (CRM WebUI).
    Is it possible to use variant configuration (with an external variant configuration tool) when creating ERP sales orders and quotations in the SAP CRM WebUI or do we have to implement SAP IPC for this?
    Thanks in advance.
    Regards,
    AEV

    Dear AEV,
    I think LORD (lean orders) should work with variant configuration as well. In the note 1236015 there is not restriction listed. However you need lord2 activated in ECC, and ECC system should be on EHP4.
    Best regards
    Rene

  • After las update some menus doesn't work properly. Ther is non possibility to use mouse. Why?

    After las update (9.2.1) some menus doesn't work properly. Ther is non possibility to use mouse. Why?

    Operating System?

  • Is it possible to use Aperture to make a new image from two existing ones--ie, in a new jpg? I essentially want to create a collage that I can then print as a single image, rather than in a book. Any advice will be most welcome!

    Is it possible to use Aperture to make a new jpg from two existing ones? I'd essentially like to create a photo collage (without using existing templates) that I can then print as a single image, rather than in a book. Any advice will be most welcome! Thanks.

    https://discussions.apple.com/message/15678716#15678716
    (Added)
    The main point is that Aperture is used to make digital negatives as good as they can be (for the uses you define), but it does not ADD date to your digital negatives, nor does it produce NEW combination files.  For those tasks you need a Graphics program.
    Message was edited by: Kirby Krieger

Maybe you are looking for