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

CGApiSurface as attribute of a class


CGApiSurface as attribute of a class

Postby hhhau » Dec 24, 2002 @ 2:18pm

hhhau
pm Member
 
Posts: 10
Joined: Dec 19, 2002 @ 4:01am
Location: Netherlands


Postby kcomeforo » Dec 26, 2002 @ 5:02pm

Here are some excerpts from the help file that may help. Sorry if you've already been over this.

Supported image file types are BMP, GIF, JPG and PNG on all devices. BMP images can be RLE-encoded (1, 4, 8, and 24-bit BMPs are supported).

I'm not sure what kind of file your *.gfx files are. I also don't know if GapiDraw goes by extension when determining files or if it interrogates the file itself to determine its type.

When images are loaded from file, GapiDraw will use an absolute file path if pImageFile begins with "\" or "x:\". If pImageFile does not begin with "\" or "x:\", GapiDraw will use the application path of your executable file and append the image file name (e.g. if your executable is "\Program Files\Games\MyGame\MyGame.exe" and you call CreateSurface with pImageFile set to "MyPicture.png", GapiDraw will try to load the image as "\Program Files\Games\MyGame\MyPicture.png").

Do you have your graphics files in the same directory as your exe file?

By the way, are you using C++ Builder? I never really worked with it, but that's what it looks like to me. I was more of a Delphi person, myself. :) I'm using Visual C++ for GapiDraw.
kcomeforo
pm Member
 
Posts: 5
Joined: Dec 2, 2002 @ 8:54pm


Postby hhhau » Dec 26, 2002 @ 10:14pm

hhhau
pm Member
 
Posts: 10
Joined: Dec 19, 2002 @ 4:01am
Location: Netherlands


Postby Sm!rk » Dec 26, 2002 @ 11:18pm

User avatar
Sm!rk
pm Member
 
Posts: 172
Joined: Dec 16, 2002 @ 4:40pm


Postby hhhau » Dec 27, 2002 @ 1:32pm

hhhau
pm Member
 
Posts: 10
Joined: Dec 19, 2002 @ 4:01am
Location: Netherlands


Postby ppcStudios » Dec 27, 2002 @ 5:20pm

User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

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

cron