Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User ganesha16hnr's Avatar
    Join Date
    Apr 2011
    Posts
    7
    Hi,

    I am developing a J2ME MIDlet which does the following things.
    1. Accesses the framebuffer or graphics context using DirectGraphics: getpixels( ) method.
    2. Put the extracted pixels in a .png or .bmp file
    3. Change the colour of the pixels

    I know how to do the 3rd step.

    Please anybody provide me a code which does above actions or atleast the procedure on how to do this.
    (j2me is preferably for nokia series 40 phones.)

    Thanks,

  2. #2
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,413
    You can only access pixels produced by your own MIDlet (the canvas of your app).

    You have no access to the screen/framebuffer data for some other app or the system in general, using j2me.

  3. #3
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    You need to paing what you want to an Image, then paint the image to the screen, so that you can get the pixels from the image.

    Also: PNG Encoding in Java ME.

    Graham.

Similar Threads

  1. DSA + framebuffer(Direct memory Address)
    By stenlik in forum Symbian C++
    Replies: 1
    Last Post: 2007-11-11, 15:03
  2. Access FrameBuffer
    By toppest in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-03, 00:45
  3. Framebuffer pixel format in 6680
    By benjers in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2005-12-16, 14:48
  4. linear framebuffer
    By artblanc in forum Symbian C++
    Replies: 5
    Last Post: 2003-06-25, 10:42
  5. Replies: 1
    Last Post: 2003-02-13, 12:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved