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

adding .tga files as resource for EastCE use...


adding .tga files as resource for EastCE use...

Postby brendan » May 2, 2002 @ 5:26am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby cryo » May 3, 2002 @ 6:27pm

User avatar
cryo
pm Member
 
Posts: 204
Joined: Sep 19, 2001 @ 6:01am
Location: Bonn, Germany


Postby brendan » May 4, 2002 @ 12:49am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby cryo » May 4, 2002 @ 9:16am

don't know, you will have to check the TGA file format. But i compared the first 18 bytes of both a compressed and an uncompressed 16bit TGA file, and they are the same except for byte 2:

compressed TGA header:
00 00 0A 00 00 00 00 00 00 00 00 00 5F 00 9F 01 10 00

uncompressed:
00 00 02 00 00 00 00 00 00 00 00 00 5F 00 9F 01 10 00

of course, form the same image.

cryo
User avatar
cryo
pm Member
 
Posts: 204
Joined: Sep 19, 2001 @ 6:01am
Location: Bonn, Germany


maybe

Postby brendan » May 6, 2002 @ 1:20am

I've used the code, and it sort of works.... I get the image upside down on the screen, with the colors distorted..... wierd.... what are you ment to send to the function, I assume it's the name of the file?, or the resource handle, but these fails, it expects an unsigned short?

can you give me a simple peice of code to call the function :)

-thanks, brendan

then all I have to do is somehow ungip the data......... fun
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby cryo » May 6, 2002 @ 3:35pm

User avatar
cryo
pm Member
 
Posts: 204
Joined: Sep 19, 2001 @ 6:01am
Location: Bonn, Germany


Postby brendan » May 7, 2002 @ 7:37am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

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