Results 1 to 4 of 4
Thread: Loading jpegs into an array.
- 02-09-2009, 04:04 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 5
- Rep Power
- 0
Loading jpegs into an array.
Hi there,
I'm completely new to Java and don't know much about programming in general.
I'm trying to make a little program that will load a folder full of small jpegs, join them together to make a big image and then finally save the result as a jpg and png.
My first step is to load each image into a multidimensional array ie myarray[x-value][y-value].
So my question is, is this possible in Java? I had a look at the documentation and i only saw examples of integer, boolean etc arrays, not images/objects...
Thanks for any help or advice!
EDIT: Well in the mean time I've decided to just put the names of the jpegs in the array and then load them all individually later. I guess it will do.Last edited by mzatanoskas; 02-09-2009 at 07:57 PM.
- 02-10-2009, 10:05 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
use ImageIO to read pics which produce BufferedImage
BufferedImage.getData.getPixel(x, y , double[])
read Images (The Java™ Tutorials > 2D Graphics > Overview of the Java 2D API Concepts)
i dont think it is a good method or not...Last edited by mtyoung; 02-10-2009 at 10:23 AM.
- 02-10-2009, 11:10 AM #3
Member
- Join Date
- Feb 2009
- Location
- Finland
- Posts
- 13
- Rep Power
- 0
- 02-10-2009, 02:01 PM #4
Member
- Join Date
- Feb 2009
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
class loading
By purejoker in forum AWT / SwingReplies: 1Last Post: 01-20-2009, 12:09 PM -
loading JInternalFrames
By vishakha in forum AWT / SwingReplies: 5Last Post: 07-23-2008, 03:58 PM -
loading a new Jframe
By Ebylord in forum New To JavaReplies: 0Last Post: 07-22-2008, 08:31 PM -
Loading Images - Imp
By Thulasiraman in forum Advanced JavaReplies: 0Last Post: 01-28-2008, 09:33 AM -
Help Loading Up Pictures
By marco in forum Java AppletsReplies: 3Last Post: 08-14-2007, 10:32 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks