Save « Icon Image « Java Swing Q&A





1. Saving an Image File    coderanch.com

2. Saving runtime Swing UI as image    coderanch.com

This may be overly simplistic, but if you just want a .jpg of a screen shot and don't need it generated programmatically... on a Windows machine with the screen active, press "alt-Prt Scr" and a copy of the active window will be saved as an image to your clipboard. Then you can simply paste it where ever you want it.

4. Saving a graphics to an image    coderanch.com

5. save image    coderanch.com

Welcome to the Ranch Vijju. I have modified you program to write to a file Lines.jpg I do not know if it is the best way. The example uses com.sun.image.codec.jpeg clases, for which there is no API. You can look at the source code by something like jar -tvf c:\j2sdk1.4.2_01\src.zip com/sun/image/codec/jpeg import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.image.*; import com.sun.image.codec.jpeg.*; ...

6. saving an image via an url    coderanch.com

Hello. I am a newbie to Java, so please bear with me. I am working on an image app. What I have achieved is to load an image, affect it (brightness, scale etc) and then save it to the local HD as a Jpg... no problems and I am impressed with the way Java deals with this. Now I am trying ...

7. saving transformed images    coderanch.com

Hi all I'm using awt for rotating images that are kept in DB blobs. The problem is that when I saved the rotated image to the DB, it appears as if its raster has the wrong dimentions. The visual affect of this problem is that the image is cut on its wide side, and a black area is added to its ...

9. saving an image    coderanch.com





10. save Image    coderanch.com

11. Saving a drawed image to a file reverses its colors    coderanch.com

Well, i'am using Graphics2D to draw a image, and iam saving that image to a png file. What it happens is that the background goes black as the strokes go white. This is the code: @Override protected void paintComponent(Graphics g) { super.paintComponent(g); int way_count; int width=600, height=600; parser = new Parser(); buffer = new BufferedImage( width, height, BufferedImage.TYPE_INT_RGB); if(imagem.exists()) { try ...

12. Save a polygon or 2D Gui as an image    forums.oracle.com