• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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 ]
 
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic