WEB开发网
开发学院手机开发Symbian 开发 Symbian 从资源加载位图 阅读

Symbian 从资源加载位图

 2010-04-20 15:56:00 来源:WEB开发网   
核心提示:CFbsBitmap* CMyWaitDialog::LoadBitmapFromResourceL(const TDesC& aResFileName,TInt aResId){CFbsBitmap* bitmap = new (ELeave) CFbsBitmap();if (bitmap){TFileName f


CFbsBitmap* CMyWaitDialog::LoadBitmapFromResourceL(const TDesC& aResFileName,TInt aResId)

{

CFbsBitmap* bitmap = new (ELeave) CFbsBitmap();

if (bitmap)

{

TFileName filename(aResFileName);

User::LeaveIfError(CompleteWithAppPath(filename));

User::LeaveIfError(bitmap->Load(filename,aResId));

}

return bitmap;

}

Tags:Symbian 资源 加载

编辑录入:coldstar [复制链接] [打 印]
赞助商链接