×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Question Access to the display/frame buffer to change pixel colors

    Hi, I am trying to access what the phone [S60 phones] are displaying at any given time at the pixel level and then change the colors of the pixels and display the new pixels. I think I know how to change the pixels once I have them, but I do not know how to access them or re-display them.

    I am using the Nokia N85 phone and programming in Java using the 3rd edition FP2 SDK.

    Thanks in advance,
    Ashley

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Access to the display/frame buffer to change pixel colors

    You cannot read the pixel data from the display.

    What you need to do is: draw everything to a mutable image, then draw the image to the screen. That way, everything on the screen is also on the image. You can get the pixel data from the image using getRGB().

    (You'll have to be using a Canvas.)

    Graham.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: Access to the display/frame buffer to change pixel colors

    Thanks, I was afraid of that. I've figured out how to change pixels on the graphics of a canvas, but my goal was to change the colors on things being displayed that were not my MIDlet. As in anything the phone is displaying, if it is the contacts, messages, web browser, ect.., I wanted to be able to manipulate the pixel colors. If you have any ideas of how to access that data that would be extremely helpful.

    Thanks for your help.

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Access to the display/frame buffer to change pixel colors

    I'm afraid you can't do what you want. The Java sandbox concept exists specifically to prevent a Java application from interfering with other applications. So, not only is there no way to do it, but the absence of a way is intentional. Sorry.

    Graham.

  5. #5
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: Access to the display/frame buffer to change pixel colors

    Okay. Thanks for your help.

    -Ashley

  6. #6
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Access to the display/frame buffer to change pixel colors

    the only thing I could immagine would be to create a theme for your device, but this is outside of J2ME's scope...
    that would give you some control on the looks (colors, backgrounds etc) of the device, but it would also be device-dependant regarding screen-size and even the possibility to run your own theme...

Similar Threads

  1. Nokia 6101 Locked 2 TMobile Midlet can't access internet...
    By Jason Glass in forum Mobile Java Networking & Messaging & Security
    Replies: 45
    Last Post: 2007-11-14, 02:19
  2. direct screen access use with bitmap and pointer addresses URGENT !!!
    By sieber.nokia in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2005-10-28, 16:06
  3. fast pixel access to frame buffer ?
    By rs_chikin in forum Symbian
    Replies: 1
    Last Post: 2003-10-22, 15:42
  4. Why use direct screen access?
    By Kalderas in forum Symbian
    Replies: 3
    Last Post: 2003-10-10, 14:29
  5. Direct access to single pixel.
    By hardwik in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-02-27, 16:08

Posting Permissions

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