×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2004
    Location
    Portugal
    Posts
    5

    CPAlbImageViewerBasic

    Hi all.
    Must have left my brain somewhere else, but my problem is .... how to display the image. Just don´t laugh, well not too much anyway.

    I used the bmpmanip example sucessfully added zooming and panning, but it's too slow. Then I found this beauty lib.

    void CGpsViewContainer::ConstructL(const TRect& aRect)
    {
    CreateWindowL();

    iViewer = CPAlbImageViewerBasic::NewL(this, Rect());
    iViewer->SetAnimationObserver(this, ETrue);
    iViewer->LoadImageL(_L("C:\\image.jpg"), EColor4K);
    iViewer->ScaleOptimumL();


    SetRect(aRect);
    ActivateL();
    }

    void CGpsViewContainer::Draw(const TRect& aRect) const
    {
    CWindowGc& gc = SystemGc();
    gc.Clear(Rect());

    // NOW WHAT ?

    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    have you tried just to give a rect to your CPAlbImageViewerBasic object and then returning it from the conponent controls function of your container ?

    yucca

  3. #3
    Registered User
    Join Date
    Oct 2004
    Location
    Portugal
    Posts
    5
    It's beeing returned from the CCoeControl component control function, but I have no clue on how to give it a rectangle. I'm brand new to symbian.

    Thanks for replying yucca.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167
    I think the class it self is also derived from CCoeControl,, so check docs for it and you'll see it.

    yucca

Posting Permissions

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