Archived

This topic is now archived and is closed to further replies.

Load a bitmap from Zip file to Surface ??

This topic is 5681 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Actually ddutil has some functions for loading bitmaps if you want to use them.

Share this post


Link to post
Share on other sites