This site is no longer active and is available for archival purposes only. Registration and login is disabled.

PocketHAL: how do I load an image from resource ?


PocketHAL: how do I load an image from resource ?

Postby abiemann » Jul 11, 2004 @ 5:26am

using pocketHAL, how do I load an image from the resource to a surface ?

my code so far:

//global variable
Surface *m_background; //Background image

//within: bool Project001::OnInitialize()
Display *display = GetDisplay();
m_background = LoadImage( display, IDB_BITMAP1 ); <~ of course this LoadImage doesn't work (I just stole it from a pocketFrog sample to get an idea)
abiemann
pm Member
 
Posts: 73
Joined: Jul 9, 2004 @ 11:26pm


Postby Kzinti » Jul 12, 2004 @ 6:36am

PocketHAL doesn't have any support for loading images. If you want to load images, I would suggest looking at how PocketFrog does it. You should be able to easily modify the code to use PocketHAL surfaces. Look in PF's "image.cpp" file.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby abiemann » Jul 13, 2004 @ 2:22pm

I've removed the resource graphic files and instead inserted the needed GFX as a header file.

http://droneship.com/forums/viewtopic.p ... dc3d4f34cb
abiemann
pm Member
 
Posts: 73
Joined: Jul 9, 2004 @ 11:26pm


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum