Load a bitmap from Zip file to Surface ??

Started by
1 comment, last by TWONG 21 years, 9 months ago
Hi ! Everyone , My question is How can I Load a bitmap from Zip or RAR file to a surface in DX ? Is there any example about that ? I heard ZIPLIB can do that , But I cannot find any example ! My Email is sky852@sinatown.com if U have above example or idea , Pls give me a email . Thank you in advance!
Advertisement
Or how about if people have any ideas they can post them right here. Anyway, as far as I can tell there are 2 steps to doing this.

1. Getting the file out of the zip into a memory buffer.
There are plenty of free zip-capable libraries out there, which should have docs so that one''s covered.

2. Loading a surface from the uncompressed file in memory.
I think there''s a D3DX helper function to do this if you''re using D3D, but if you''re using DirectDraw you''ll have to write a bitmap loading function.

Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Actually ddutil has some functions for loading bitmaps if you want to use them.

This topic is closed to new replies.

Advertisement