×

Discussion Board

Results 1 to 4 of 4

Thread: Image effects

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    1

    Image effects

    Hi all,
    I have to apply various visual effects on different images in JPEG and GIF formats. User can browse any image in the phone and once the image is opened IF provides lots of menu options to apply visual effects on the image as “Punch”, “Swirl” e.t.c. The application engine applies the effects by changing the RGB data of the image based on some specific algorithms. Also the application provides GIF animation to be displayed on the screen which is not possible with the existing decoders present in the phone by default.


    I have started to learn symbian now.. To start with i have taken an assignment(Stated above)
    As Per above requirement i have to learn to
    1. Browse images in the moblile
    2. decode it
    3. Apply the effect
    4. Encode it back

    Thank you.. hoping to get a start!!!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Image effects

    1: Check MGFetch API (MG=Media Gallery)
    2: CImageDecoder
    3: CFbsBitmap::LockHeap/DataAddress/UnlockHeap
    4: CImageEncoder

    You can find several getting started pages in this site, check the Docs section above (select Symbian C++), and the Wiki (like http://wiki.forum.nokia.com/index.ph..._Symbian_OS%3F).
    Example codes are also there, like the ones revealed by this search: http://wiki.forum.nokia.com/index.ph...=gif+animation (however encoding animated .gif files is not supported in particular).

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Image effects

    Also the application provides GIF animation to be displayed on the screen which is not possible with the existing decoders present in the phone by default.
    GIF animations are supported - you'll find an article in the Wiki. Which S60 platform (edition) are you working on?

    1. Browse images in the moblile
    Use RFs & RFile or possibly the MGFetch API in the API plug-in packs (again search the wiki).
    2. decode it
    Use CImageDecoder.
    3. Apply the effect
    Get the DataAddress() from the CFbsBitmap and run your algorithms on the data directly.
    4. Encode it back
    Use CImageEncoder.

    Hope that helps,
    Sorcery

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Image effects

    Beaten to the post by the wizard again! And he's right, you can't encode your own GIF animation with the built-in encoders but you can display an existing animation to show that you're doing something (which was what I assumed, maybe wrongly).

Similar Threads

  1. --- ???save image problem??? ---
    By ferenn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2007-10-01, 14:33
  2. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  3. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

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