×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    21

    Graphics to Image?

    Is it possible to generate an Image out of a Graphics object?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    You could use DirectGraphics.getPixels() and then drawPixels() to to draw them on a new Image. Standard MIDP doesn't have any way to so this.

    If you are going for screen-capture functionality then the best things is to draw everything onto a buffer (which already is an Image) and draw that buffer onto the screen (like implementing double buffering basically).

    shmoove

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×