Skip to main content
gamedev.net
🔒 Locked

Zooming a Surface

Started by madfisher Oct 22, 2002 at 6:59 AM 2 replies 400+ views
Original Post
madfisher
madfisher
Hi, Does anyone know if there is an easy way to zoom in and out of a directx surface? Thanks
hammerstein_02
hammerstein_02
I would presume (if you mean like DirectX7 and below) that you would just make the surface bigger as you blit.. ie. using a rect that is oversized will automatically stretch the image.. and it would zoom it in..

=*=
If things seem bad, think that they can get a whole load worse, and they don''t seem so bad anymore

=*=
madfisher
madfisher
Would this be the same if I zoom out. Can this method shrink an image.
I have an HBITMAP that is too big and I want to make it a certain smaller size. How can I do this without using StretchBlt?

Thanks
Pipo DeClown
Pipo DeClown
StrechBlt() is very well explained at MSDN, you should go and have a look, if you use StretchBlt() dont use BitBlt().

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.