PNG « Icon Image « Java Swing Q&A





1. PNG TrayIcon transparency on Windows    stackoverflow.com

I'm trying to use a transparent PNG as the icon for my Java application. The image on the JFrame and task bar work great. However, when I use the image with ...

2. Saving a Java 2d graphics image as .png file    stackoverflow.com

I am drawing a graphical representation of information my simulation is generating. I have the graph displaying but the problem i am running into is to be able to save ...

3. Pixels to PNG    coderanch.com

Ken, You have to know how the pixels are encoded into the file, i.e. the file format, plus if there are any headers, etc. Luckily, you don't (usually) have to write your own encoding functions... sun provides a JPEG encoder in the com.sun.image.codec.jpeg package (it comes with the JDK... look here to get info http://java.sun.com/products/jdk/1.2/docs/guide/2d/api-jpeg/overview-summary.html ), and I am sure someone ...

4. set .png file in ImageIcon    coderanch.com

5. PNG Encoder    coderanch.com

6. Help w/ displaying several .PNG files    coderanch.com

I am very new to Java, and I am trying to make a graphical Craps game. If you're familiar with Craps, then you know that there are about 40 different bets meaning there are 40 different places to put poker chips on the table. I'd like to show a poker chip on every bet location on the table where the player ...

7. How to create png image with the pixels array?    coderanch.com

I attempt to use MemoryImageSource but I don't know how to create the image and how to reserve the image?import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.io.*; import javax.imageio.*; public class Test { public static void main(String[] args) { Color[]colors = { Color.red, Color.yellow, Color.blue, Color.cyan, Color.white, Color.green, Color.magenta, Color.orange}; byte[] reds = { (byte)colors[0].getRed(),(byte)colors[1].getRed(), (byte)colors[2].getRed(),(byte)colors[3].getRed(), (byte)colors[4].getRed(),(byte)colors[5].getRed(), (byte)colors[6].getRed(),(byte)colors[7].getRed() }; byte[] greens ...





10. Displaying GIF/PNG image files in a Java Swing application    coderanch.com

(I tried searching for this topic through the archives but was unable to find a clear answer to my question, so please bear with me!) I have this Java Swing application in which I need to display image files - GIF, PNG, and JPEG initially. TIFF (and optionally PDF) will be dealt with later on. The image files will be retrieved ...

11. Is compression not supported for PNG?    coderanch.com

12. Displaying a png on screen using AWT    coderanch.com

Hi I hope someone may help me and clear up my confusion here as I seem to be going round in circles. I am writing an application using Java ME, so would I be right in assuming I can't use any Swing components? I have been trying to take an image saved on my computer and get it to display in ...

13. PNG to JPEG    coderanch.com

14. Setting the DPI value on a generated PNG image    coderanch.com

Hi all, I have some graphs which I've rendered into some BufferedImages. These images are now going to be saved to disk as .PNG files as they must be loss less in the quality of the graphs. These files are to be used for publishing in various magazines, and these magazines have a requirement that the images must have a DPI ...

15. SwingGUI Fret http://linux-sound.org/images/blog/full-size/2-guitar-codex-plus.png    java-forums.org

Hi guys, Here comes the most difficult part of my program :confused: Please i need someone to give me idea on how to use Swing GUI components to create Guitar Frets (6 strings) like the link in this post's title (just the frets). I Google around the world but i get only sequence, synthesizer, chords but no GUI interface. I have ...

16. Convert a JComponent to a png Image    forums.oracle.com