Zooming a Surface

Started by
2 comments, last by madfisher 21 years, 5 months ago
Hi, Does anyone know if there is an easy way to zoom in and out of a directx surface? Thanks
Advertisement
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

=*=
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
StrechBlt() is very well explained at MSDN, you should go and have a look, if you use StretchBlt() dont use BitBlt().

This topic is closed to new replies.

Advertisement