T
Timo Nentwig
Hi!
Is there something like MemoryImageSource in J2ME?
Is there something like MemoryImageSource in J2ME?
Timo said:Hi!
Is there something like MemoryImageSource in J2ME?
Darryl said:J2ME is not a product, but a reference or umbrella term for several
different technologies. Are you referring to the MIDP? If so, the
Yes.
answer's no.
Timo said:So there's no way to draw single RGB pixels to the display?
Darryl said:That wasn't your question. Yes, you can draw a single pixel on the
screen of a display by extending Canvas, overriding the paint(Graphics)
method and drawing as you wish. Your question was whether there was
something like MemoryImageSource, to which the answer is no.
Timo said:Well, ok, let's but it this way: can I blit a int array of 32bit (or
whatever depth) pixels to the screen? Or how do people write (fast) J2ME
games?
Darryl said:As I said, you can extend Canvas (or, if MIDP 2, GameCanvas), override
the paint() method and write to the display that way.
Timo said:Well, at a glance I can use the Graphics object. That's not what I want.
What I want is something like the DitherTest distributed with J2SE:
http://java.sun.com/applets/jdk/1.0/demo/DitherTest/DitherTest.java
Timo said:Darryl Pierce wrote:
Well, at a glance I can use the Graphics object. That's not what I want.
What I want is something like the DitherTest distributed with J2SE:
http://java.sun.com/applets/jdk/1.0/demo/DitherTest/DitherTest.java
Darryl said:And, has already been said, there's no way to do that in the MIDP.
Timo said:Darryl Pierce wrote:
How shall people write Games for mobile phones if this is not possible?
Darryl said:There's a complete gaming API in the MIDP 2.0, and a fully usable Canvas
in MIDP 1.0. Games have been produced for a few years now for MIDP
devices, without the games having access to video memory...
Darryl said:And, has already been said, there's no way to do that in the MIDP.
Timo said:Darryl said:And, has already been said, there's no way to do that in the MIDP.
public static Image createImage(byte[] data, int offset, int length);
Timo said:And, has already been said, there's no way to do that in the MIDP.
public static Image createImage(byte[] data, int offset, int length);
Timo said:And, has already been said, there's no way to do that in the MIDP.
public static Image createImage(byte[] data, int offset, int length);
"The data must be in a self-identifying image file format supported by the
implementation, such as PNG."
What nonsense is this?
There are real-time 3D brew application and with J2ME I cannot even draw a
pixel to the display??
Darryl said:Yes, as you have already been told.
Timo said:No, I can (and I did).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.