Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2009, 04:04 PM
Member
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0
chale is on a distinguished road
Default Changing colors of an image in real time
Hi,

I am trying to get an image raw data in an int[] array using getRGB() in order to change the color of the image.
But it is working fine in simulator for any image. if i install it in real device say Nokia 6600 the getRGB() method is not working for large .png image like size (88X57) because the device gets hang while we are using large image but it is working fine for small image.

Pls give me some idea how to use getRGB() for large image.

Following is the sample code
Code:
int imageWidth = img.getWidth();  
int imageHeight = img.getHeight();
 
int[] raw = new int[imageWidth*imageHeight];
img.getRGB(raw, 0, imageWidth, 0, 0, imageWidth, imageHeight);


Thanks in advance
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistence problem when changing type to java.sql.Time Inks Database 0 03-08-2009 02:52 PM
real-time validation atomz4peace Eclipse 0 01-06-2009 08:31 PM
how get real-time output tOpach New To Java 5 12-17-2008 09:41 PM
Colors and shapes. Torgero New To Java 14 10-13-2008 06:25 PM
how can I update an image which is captured from a video in real-time ? aneuryzma New To Java 0 08-13-2008 11:46 PM


All times are GMT +2. The time now is 03:30 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org