Archived

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

Make my Bitmaps bigger in DirectDraw!!

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

How do I make a tiny bitmap bigger using directdraw? Can I? I just don''t want to have to create a completely new bitmap for an object if it happens to be a bit too small when I initially created it. Plus theres some cool stuff I could do if I knew how to make it bigger using code.

Share this post


Link to post
Share on other sites
<< I just don''t want to have to create a completely new bitmap for an object if it happens to be a bit too small when I initially created it. >>

You might want to bring it into whatever graphic program you are using and re-size it. Its all in the planning....think ahead. I don''t know enough DirectDraw to do it in code (look at whatever version SDK you are using). Here''s a file with a lot of articles from GameDev, probably all you need

DirectDraw.txt

Phil P

Share this post


Link to post
Share on other sites
I''m not too sure, and correct me if I''m wrong, but if the destination rectangle you send to the blt is a different size than the source rectangle, the bitmap should appear to change size.

Share this post


Link to post
Share on other sites
Only if hardware supports it, same with rotation. there is scaling in the HEL too, but it''s slow, and most modern graphic cards have little to no 2D bitmap scaling or rotation capabilities.
But yeah, scaling in ddraw will work with BLT, if you pass a different sized rectangle. check the ddraw sdk examples.

Share this post


Link to post
Share on other sites