×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2003
    Location
    London, UK
    Posts
    3

    manipulating camera snapshots

    Hi everyone,

    I'm trying to figure out how to read and set the RGB values of the pixels in the images that videocontrol.getSnapshot returns. I get exceptions if I say

    byte[] pngImage = videoControl.getSnapshot("encoding=rgb888");

    ...is it possible to capture raw rgb into a byte array and examine and change those values before returning them to the display? or is this impossible in java?

    Any help hugely appreciated.

    Dave

    MA IDM, www.ma.rave.ac.uk

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393
    You can pixel date using DirectGraphics. Look at Nokia UI API. Refer to this document:
    http://ncsp.forum.nokia.com/download...IAPI_Guide.pdf

    [N]/Forum Nokia

  3. #3
    Registered User
    Join Date
    Jun 2003
    Location
    London, UK
    Posts
    3
    Thanks, "nmittal"!

    For anyone else: capture from the camera (as per the examples) to an intermediate image.

    Copy this image into a new image you have created using the DirectUtils class. You can then read and set pixels in this image, before committing it to the phone display using another copy in the paint() method.

    Dave

    MA IDM, www.ma.rave.ac.uk

Posting Permissions

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