×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Display JPG image

    Hi to all,
    i m making an application in S60 3rd Edition,i want to display an jpg image in a container at a specified position from a Phone Gallery, i have a path of selected image from a phone galley in a TBuf , now i want to display it in a container, how can i do this , can any body help me out this problem or could someone have piece of code for this.

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

    Re: Display JPG image

    here's a sample code for reading files into bitmaps: http://wiki.forum.nokia.com/index.ph...Symbian_bitmap

    And then just use gc functions in your Draw() to draw it to teh screen.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Apr 2006
    Location
    India
    Posts
    383

    Re: Display JPG image

    Hi!

    U can use CMdaImageFileToBitmapUtility class or CImageDecoder
    Search in sdk for details of image conversion.

    In 2nd edition (if u have)sdk see
    C:\Symbian\8.0a\S60_2nd_FP2_CW\Examples\multimedia\imageconv

    or follow the link which Yucca suggested.

    Hope this wil help u.
    Regards,
    Shilpa Kulkarni

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Re: Display JPG image

    Thanks symbianyucca & Shilpa13, i have created a Bitmap now how can i use it in a draw method of container.

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

    Re: Display JPG image

    do something like this:

    void CMainContainer::Draw(const TRect& /*aRect*/) const
    {
    CWindowGc& gc = SystemGc();

    if(iBitmap)
    {
    if(iBitmap->Handle())
    {
    gc.DrawBitmap(Rect(),iBitmap);
    }
    }
    }

    yucca

Similar Threads

  1. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  2. 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
  3. Display, modify and save image
    By mazi888 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-03-13, 20:14
  4. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  5. Game Developement - Display object on a image background
    By kenkwokkam in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-08, 14:58

Posting Permissions

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