bufferedimage « Media File « Java I/O Q&A





1. Creating very large image files with BufferedImage, strange issues depending on compilation and computer    stackoverflow.com

I'm attempting to create a very large image in Java like so: BufferedImage bi = new BufferedImage(58240, 1664, BufferedImage.TYPE_INT_RGB); obviously the image is very large. Now the issue I'm having is that it ...

2. Creating very large image files with BufferedImage, strange issues depending on compilation and computer (-Xmx does not work)    stackoverflow.com

Just to follow up on here: http://stackoverflow.com/questions/961795/creating-very-large-image-files-with-bufferedimage-strange-issues-depending-on-c I still have the issue and I did try the Xmx command line to make sure the JVM had at least 1024m of RAM, ...

3. create a sparse BufferedImage in java    stackoverflow.com

I have to create an image with very large resolution, but the image is relatively "sparse", only some areas in the image need to draw. For example with following code

/* this take ...

4. Get file size of BufferedImage before writing the data    stackoverflow.com

I'm working on a Java program that needs to send an image (preferably in PNG format, though I could perhaps use another format if necessary) over the network. The logical way ...

5. can I get original image from BufferedImage?    stackoverflow.com

i has a BufferedImage instance: (only a example)

BufferedImage image = ImageIO.read(new URL("http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"));
now,i only know use
ImageIO.write(image,"jpg", file); //or ImageIO.write(image,"png", file);
to save this BufferedImage to a file, but this file is ZIPed,not ...

6. Using Java, what is the best way to save an image to a file?    stackoverflow.com

I have a school work where I need to save an arbitrary image to the disk along with other data, in a single file. We thought about serializing it, along with the ...

7. How to write PNG files in java using pixel RGB values 0 to 1?    stackoverflow.com

I am writing a ray tracer in java and I am trying to figure out how to write my generated image to a PNG file. So far, all the examples I ...

8. Java save image to file problem    stackoverflow.com

I have code that generates a pair of related graphs on the screen, in separate canvases. I wish to save both of these images to separate files. But when ...

9. Creating a BufferedImage from .tiff file    stackoverflow.com

I'm trying to created a BufferedImage from a .tiff file (raw() is the path of a .tiff image):

// read a buffered image from the disk
BufferedImage buff = ImageIO.read(new File(raw()));
Originally ImageIO.read was ...





10. ImageIO write produces a different file size as compared to the original image file    stackoverflow.com

When ImageIO is used to read an image file, then writes the BufferedImage (without any manipulation of the BufferedImage objet) to another file, the file size of the written file is ...

11. Image to BufferedImage converter    coderanch.com

Hi all, I found this code somewhere on Internet. I use this code in my web application. No problem when using this BUT it slow on rendering the image. How do I increase the performance? Is there a way to enhance this method? Here is the code: (for someone who need it, just put to your application and run it) /* ...