Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Problem when creating an image for use as a off-screen buffer.

This topic is 5546 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''m trying to create an image using the J2ME in the C55. This image will be used like an "scroller", and I need to have it with 700+ pixels of width and 64 of height. But when I create it with more than 200 pixels, it doesn''t create with the specified widh! I''m using this code: int _bufferX = 0; Image _doubleBuffer = Image.createImage( 800, 64 ); Graphics _bufferGraphics = _doubleBuffer.getGraphics(); and this on paint: protected void paint( Graphics screenGraphics ) { . . . screenGraphics( _doubleBuffer, _bufferX, 0, Graphics.LEFT | Graphics.TOP ); } I''m trying to able the user when press the KEY_NUM4 reduce the _bufferX for scroll the _doubleBuffer. Any other idea to how make this using the J2ME? Or only an idea to make this work? Thanks, Rafael

"Be forgotten is worse than death..."

Rafael G. Donato

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!