MIDP: create Image from int/byte array?
From: Bo (snarlly_at_hotmail.com)
Date: 03/29/04
- Next message: wolfgang hafenscher: "Java | JPane WebBrowser"
- Previous message: Bo: "MIDP: "Select one to launch" screen always on top?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Mar 2004 19:27:45 -0800
Hi
I have an array of int that represents a frame buffer, which I update
dynamicly. Each int is 0xAARRGGBB. In standard java I can use
imageProducer to create an Image object.
In J2ME there is only createImage( Byte[], int,int,int) in the Images
class. From reading past posts it seems the Byte array must adhere to
some PNG format (which I have no idea). In other words, I can't use a
Byte array equivalent of my int array.
Thanks.
- Next message: wolfgang hafenscher: "Java | JPane WebBrowser"
- Previous message: Bo: "MIDP: "Select one to launch" screen always on top?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|