MIDP: create Image from int/byte array?

From: Bo (snarlly_at_hotmail.com)
Date: 03/29/04


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.



Relevant Pages

  • (patch for Bash) regex case statement
    ... Following up on my previous patch for regex conditional tests, ... /* Return an array of strings; ... int dollarflag, zeropad, compareflag; ... SHELL_VAR *var; ...
    (comp.unix.shell)
  • Re: Strategy or Iterator?
    ... It would be possible to write a class that returns the variations ... GNU General Public License for more details. ... protected CombinatoricOperator(Telements, int r) { ... An integer array backing up the original one to keep track of the ...
    (comp.lang.java.programmer)
  • (patch for Bash) regex conditional tests
    ... 'regex' are returned in array variable SUBMATCH. ... Skipping of positional parameters, array elements, string ... int dollarflag, zeropad, compareflag; ... SHELL_VAR *var; ...
    (comp.unix.shell)
  • Re: Warning on assigning a function-returning-a-pointer-to-arrays
    ... This declares pfunc as a function taking no arguments and returning ... int x, y; ... Presumably pfuncwill return a pointer to a single int, ... or the first of a sequence of "array 5 of int"s. ...
    (comp.lang.c)
  • Re: Memory Allocation Problem, please help
    ... typedef struct word_tag{ ... array is not an array. ... static int total_word_count; ... static int word_index(const char *word); ...
    (comp.lang.c)