• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Rawdata using MIDP1.0

 
Santhana Lakshmi.S
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i want to do Image processing using MIDP1.0 version of j2me.
While doing Image processing i want to get the raw data frm the images.
can anyone tell me how to get the rawdata frm the images using MIDP1.0 coz it doesn't support the "getRGB " method which i used to get the rawdata values using MIDP2.0
thanx a lot
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with the raw data. Store your graphic as a byte array and then use javax.microedition.lcdui.Image.createImage() to create the image for the display.

createImage(byte[] imageData, int imageOffset, int imageLength)

You can do any manipulation you want on the byte array before converting it into an image.

William Frantz
http://sprintdevelopers.com
[ October 19, 2005: Message edited by: William Frantz ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic