Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Java Help

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-2008, 05:42 AM
mimiru83 mimiru83 is offline
Newbie
 
Join Date: Jun 2008
Posts: 4
Rep Power: 0
mimiru83 is on a distinguished road
Default Creating an image from a [60][80][3] array

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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 09-28-2008, 08:33 AM
marwex89's Avatar   
marwex89 marwex89 is offline
Guru
 
Join Date: Jul 2008
Location: Viking-land!
Posts: 3,995
Rep Power: 30
marwex89 is a jewel in the roughmarwex89 is a jewel in the roughmarwex89 is a jewel in the rough
Send a message via AIM to marwex89
Default Re: Creating an image from a [60][80][3] array

Lol, well, you better let us know where you want to draw it, then.. And this thread should be moved to another forum, this is not a tutorial.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-28-2008, 09:34 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,650
Last Blog:
PHP Objects, Patterns,...
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: Creating an image from a [60][80][3] array

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-28-2008, 04:34 PM
mimiru83 mimiru83 is offline
Newbie
 
Join Date: Jun 2008
Posts: 4
Rep Power: 0
mimiru83 is on a distinguished road
Default Re: Creating an image from a [60][80][3] array

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-30-2008, 07:07 PM
reniery reniery is offline
Learning Programmer
 
Join Date: May 2008
Posts: 42
Rep Power: 2
reniery is on a distinguished road
Default Re: Creating an image from a [60][80][3] array

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 10-07-2008, 07:08 AM
mimiru83 mimiru83 is offline
Newbie
 
Join Date: Jun 2008
Posts: 4
Rep Power: 0
mimiru83 is on a distinguished road
Default Re: Creating an image from a [60][80][3] array

Thanks a lot...That actually was what I needed..Thank very much again..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -5. The time now is 11:44 PM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads