newlc.com
Articles Only
Forum Only
Community
World-Wide Web
Home
News
Tutorials
Reviews
Downloads
Professional Services
Forums
Newsletter
Blog
About us
Last forum posts
Home
::
Forums
::
Development
::
User Interface
::
Nokia Series 90
User login
Username:
*
Password:
*
Create new account
Request new password
Featured pages
Configure your PC for Symbian development
Getting started with Symbian development
Symbian OS Error Codes
Common products UIDs
Nokia S60 SDK
Featured Software
Y-Browser
Y-Tasks
Active users (last 30 days)
User
Score
rbrunner
85
alh
64
eric
58
praveen.nitdgp@...
42
jupitar
38
more
Feeds
More feeds...
how can i put the image on my application??
Login
to reply to this topic.
Tue, 2005-07-26 13:14
jeonguk
Joined: 2005-07-12
Forum posts: 8
i want to put the image .bmp file on my application for background image.....
so i converted the .bmp image to .mbm ....but it didn't work...
i just want to use the background image.....plz help.....
Login
or
register
to post in forums
Thu, 2005-08-18 07:25
doctinh113
Joined: 2005-06-21
Forum posts: 107
Re: how can i put the image on my application??
you can do that with:
void CGameDemoAppView::ConstructL(const TRect& aRect)
{
_LIT(iPathName,"c:\\System\\Apps\\GameDemo\\welcome.mbm");
iBackground=CEikonEnv::Static()->CreateBitmapL(iPathName, EMbmWelcomeImage01);
// Create a window for this application view
CreateWindowL();
// Set the windows size
SetRect(aRect);
// Activate the window, which makes it ready to be drawn
ActivateL();
}
// Draw this application's view to the screen
void CGameDemoAppView::Draw(const TRect& /*aRect*/) const
{
CWindowGc& gc = SystemGc();
TRect drawRect = Rect();
gc.DrawBitmap(TPoint(0, 0), iBackground);
gc.Clear();
}
 
Login
to reply to this topic.
Forum posts: 107
void CGameDemoAppView::ConstructL(const TRect& aRect)
{
_LIT(iPathName,"c:\\System\\Apps\\GameDemo\\welcome.mbm");
iBackground=CEikonEnv::Static()->CreateBitmapL(iPathName, EMbmWelcomeImage01);
// Create a window for this application view
CreateWindowL();
// Set the windows size
SetRect(aRect);
// Activate the window, which makes it ready to be drawn
ActivateL();
}
// Draw this application's view to the screen
void CGameDemoAppView::Draw(const TRect& /*aRect*/) const
{
CWindowGc& gc = SystemGc();
TRect drawRect = Rect();
gc.DrawBitmap(TPoint(0, 0), iBackground);
gc.Clear();
}