×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    1

    Image Editor API?

    I'm writing an application for Symbian (mainly 5h edition) in which the user is supposed to manually crop one of his gallery photos.
    What i would like to do is this:

    1) the user load & view an image (from his phone)
    2) the user draw a square over the image
    3) the application crop that square from the image, and store the image (for further access, via File/Access API)

    My question is: there is any API (something like the crop function of the official Image Editor) to do that?, maybe via APIBridge?
    (I think there is a such API for iPhone & Android)

    If not, what can I do?

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

    Re: Image Editor API?

    Welcome to Forum Nokia!

    No, there is no "image editor" API.

    There are two ways to crop an image.

    1. Use getRGB() to get the pixel data from the original image as a int[], copy the pixels you want to another int[], then use createRGBImage() to create a cropped copy.

    2. Create an image of the size you want when cropped, then draw the uncropped image onto it, at the appropriate negative coordinates, so that the part of the image you want appears on the new image.

    You will be doing a lot of image manipulation of this kind. Note that there is also no API for scaling an image (which you will need to display a large image on a small screen), nor to encode an image as JPEG or PNG (or any other format). However, you will find sample code for a lot of what you need on the Forum Nokia Wiki.

    Graham.

Similar Threads

  1. Image Editor example
    By sunitha.m13 in forum Symbian
    Replies: 1
    Last Post: 2010-10-27, 08:20
  2. Image Editor
    By prabhu_manju in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2010-04-24, 13:17
  3. Can I open the image editor view with specific image?
    By nadis in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2009-08-12, 10:47
  4. Open the native Image Editor Application
    By lpradeepa in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2009-02-06, 03:42
  5. Phonebook editor API or Class
    By Blkangel in forum Symbian
    Replies: 0
    Last Post: 2004-03-23, 12:49

Posting Permissions

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