• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Getting Rawdata using MIDP1.0

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic