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

Need A Solution (gapidraw + symbian)


Need A Solution (gapidraw + symbian)

Postby shanytc » Apr 10, 2004 @ 4:38pm

-shanytc-
shanytc
pm Member
 
Posts: 13
Joined: Mar 30, 2004 @ 6:26pm


Postby shanytc » Apr 10, 2004 @ 8:22pm

-shanytc-
shanytc
pm Member
 
Posts: 13
Joined: Mar 30, 2004 @ 6:26pm


Postby Johan » Apr 11, 2004 @ 7:50pm

If you want to use EXE files on Symbian devices you have to provide image loaders yourself, as you found out.

You cannot simply read a PNG file and copy it to a surface. You need to (a) decode the RGB pixel data, and (b) transform the pixel data into the 444 or 565 pixel format used by the device. You can use CGapiSurface::SetPixels to set one row of pixels in a fast way (this also solves the RGB transformation), but you still need some way to decode the PNG image.

One advice is to use a simple bitmap format, such as TGA, and then use CreateSurface and SetPixels to set the color values.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby shanytc » Apr 11, 2004 @ 10:27pm

Attachments

[The extension jpg has been deactivated and can no longer be displayed.]

-shanytc-
shanytc
pm Member
 
Posts: 13
Joined: Mar 30, 2004 @ 6:26pm


Postby Johan » Apr 12, 2004 @ 10:06am

Great news! Please keep us informed of your progress!
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby shanytc » May 2, 2004 @ 8:51pm

Attachments
chipn.zip
(81.16 KiB) Downloaded 384 times
-shanytc-
shanytc
pm Member
 
Posts: 13
Joined: Mar 30, 2004 @ 6:26pm


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