Jump to content
  • Advertisement

Archived

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

TWONG

Load a bitmap from Zip file to Surface ??

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

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!