×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    How to detect dark image?

    Hi,
    i managed to take snapshots with device cameras and to transform CFbsBitmap into jpeg data buffers.

    Now i'd like to programmatically detect too dark images, but i'm totally newbe in this field. Does Symbian already provide some API (starting from 3rd MR)? Or could you advice me on some starting point to investigate further? I've looked around here but i wasn't able to find something.

    Thank you
    pg

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to detect dark image?

    AFAIK there us no ready made APIs available, you could read scan lines and pixels from the CFbsBitmap with the APIs provided by that class, but then you would need to still implement your own logic for any image detection issues.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: How to detect dark image?

    Thank you Yukka!
    I have to add this feature because already present in code for another platform, so i have the algorthm for a bitmap RGB565; i used "getscanline" as a key for a search and i found a way to access pixels here:
    http://symbian.newlc.com/en/topic-11855
    Crossing the two info i should be able to find the answer to my original question... i hope :-)

    best regards
    pg

Similar Threads

  1. Detect all image file in a folder
    By fecxelmin in forum Mobile Java General
    Replies: 11
    Last Post: 2010-04-26, 09:23
  2. Replies: 3
    Last Post: 2010-02-09, 02:13
  3. How can I tell if a color is dark or light from its RGB values?
    By marquk in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-01-31, 20:23
  4. How to convert a JPEG image to a PNG image using J2ME Code
    By hussain_afs in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-12-31, 16:48
  5. Clock screensaver too dark to read on 2610
    By gsxr in forum General Development Questions
    Replies: 1
    Last Post: 2006-12-19, 09:37

Posting Permissions

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