CPAlbImageViewerBasic: can't resize

Login to reply to this topic.
Fri, 2005-05-13 18:38
Joined: 2003-12-30
Forum posts: 93
Hi !

I have a curious problem using the CPAlbImageViewerBasic (ok it's deprecated, but It was the easiest way to quickly insert a JPG Picture ) in my Container.

In the Draw() method of the container  I have :

CPAlbImageViewerBasic* iViewer = CPAlbImageViewerBasic::NewL(this, Rect());
iViewer->SetImageNameAndDisplaymodeL(_L("test.jpg"), EColor64K);
gc.BitBlt(TPoint(0,0),iViewer->Bitmap());

The picture is loaded and displayed but always tiny and never with the correct/original size.
I've tried to use the iViewer->SetOptimize() or SetSize(Tpoint(100,100)) : unfortunately the size of the picture remains the same.
What can I do to avoid this Huh

Thx a lot for your answers !

MatD


Fri, 2005-05-13 19:37
Joined: 2003-12-30
Forum posts: 93
CPAlbImageViewerBasic: can't resize
Solved !

Rect() was to little and did not take the container size Sad I used aRect instead

MatD

  • Login to reply to this topic.