image conversion

Login to reply to this topic.
Sat, 2008-05-31 07:43
Joined: 2007-07-31
Forum posts: 140

hi all ,

Please help me in solving out the error.

i have written the following code in which i create object of CFbsBitmap
and CImageDecoder but it gives link error for thease two class.
Can anybody tell me the reason ?While i have included the necessary header files
imageConversion.h and fbs.h

void CMainViewContainer::ConstructL(const TRect& aRect)
{
        CreateWindowL();
       
        iSplashImage = new CFbsBitmap();
        //iSplashImage->Create(TSize(0,0), EColor256);
       
        TRequestStatus aRequestStatus;
//        iImageDecoder = CImageDecoder::FileNewL(iEikonEnv->FsSession(), KImage);
//        iImageDecoder->Convert(&aRequestStatus,*iSplashImage);
       
        //----------Loading Image----------------//
    iSplashImage = iEikonEnv->CreateBitmapL(KMultiBitmapFilename,EMbmMobilekarokeSplashimage);
    //--------------------------------------//
   
    SetRect(aRect);
    ActivateL();
}

Thank in advance

Brajesh...


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++


Sat, 2008-05-31 10:10
Joined: 2008-03-12
Forum posts: 30
Re: image conversion

Do you have LIBRARY fbscli.lib imageconversion.lib in your mmp file?
I can see from the doc CFbsBitmap is defined in fbscli.lib and CImageDecoder in imageconversion.lib so you have to link to these libs using the LIBRARY statement in you mmp

Mon, 2008-06-02 10:02
Joined: 2007-07-31
Forum posts: 140
Re: image conversion

yes , but still not working...

Thanks!
Brajesh...


Life is too short ! so do as many good things as you can do...
Brajesh Kumar...
Beginner in Symbian C++

Mon, 2008-06-02 11:49
Joined: 2007-08-02
Forum posts: 26
Re: image conversion

Hi,

Can you paste the errors here ??

It would be more easy to see whats the mistake.

  • Login to reply to this topic.