|
||||||
| Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi, I have an array of 60x80x3..60x80 is the array of the pixels of an image and the last dimension contains the color info in rgb.
I am looking for a method that can help me draw an image of this array.. |
| Sponsored Links |
|
|
|
|||||
|
Moved to correct forum.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||
|
To make myself clearer, I have an [60][80][3] array where:
[60][80] is an array with values (float) and to each value a specified color corresponds .I define the color by giving certain values to red,green and blue. I was thinking about using MemoryImageSource or ImageProducer producer but i can't make something work.. And I still can't find the appropriate bufferedImage function and void setRGB(int x, int y, int rgb) requires an int while I have an array with 3 values Red Green Blue. |
|
|||
|
I donīt really understand your problem but here this an example I used to create an image using an array[][][] , you can find other code samples if you look around on that site
https://jaistuff.dev.java.net/code/d...eRGBImage.html |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2D Python Array - "List Indices Must Be Integers" (cannot access an array element) | Bertsche | Python | 3 | 07-07-2008 11:51 AM |
| Creating an array without a predefined size? | thieflock | Java Help | 2 | 04-10-2008 07:12 PM |
| Creating an image viewer in Visual Basic | blueparukia | Visual Basic Programming | 4 | 09-10-2007 03:00 AM |
| Python 2D array question | annannienann | Python | 3 | 04-23-2007 05:36 PM |
| Resize Images And Maintain Original Sharpness | AfTriX | Photoshop Tutorials | 7 | 04-20-2007 10:55 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |