Jump to content
  • Advertisement


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


Load a bitmap from Zip file to Surface ??

This topic is 6017 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!