Results 1 to 1 of 1
- 05-06-2009, 03:04 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 3
- Rep Power
- 0
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
Java 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 :D
Similar Threads
-
Persistence problem when changing type to java.sql.Time
By Inks in forum JDBCReplies: 0Last Post: 03-08-2009, 01:52 PM -
real-time validation
By atomz4peace in forum EclipseReplies: 0Last Post: 01-06-2009, 07:31 PM -
how get real-time output
By tOpach in forum New To JavaReplies: 5Last Post: 12-17-2008, 08:41 PM -
Colors and shapes.
By Torgero in forum New To JavaReplies: 14Last Post: 10-13-2008, 05:25 PM -
how can I update an image which is captured from a video in real-time ?
By aneuryzma in forum New To JavaReplies: 0Last Post: 08-13-2008, 10:46 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks