Home All Groups Group Topic Archive Search About

Rotating an image and drawing using BitBlt?

Author
21 Oct 2005 11:20 PM
M Wilson
Hi,

I am currently working on a snooker game with simple graphics using the
BitBlt function. How could I rotate an image such as the cue and display it
using BitBlt?

I read "RotBlt" somewhere but am I right in assuming that it is C++ only?

Thanks for any help
Matt

Author
22 Oct 2005 12:47 AM
Mike D Sutton
> I am currently working on a snooker game with simple graphics using the
> BitBlt function. How could I rotate an image such as the cue and display it
> using BitBlt?
>
> I read "RotBlt" somewhere but am I right in assuming that it is C++ only?

You're probably thinking of the PlgBlt() API call, here's how to use it in VB:
http://groups.google.co.uk/group/microsoft.public.vb.winapi/msg/1ed1fe9ecd60e4fa
Your other option would be to use a dedicated graphics API such as DirectX which would allow you to perform the same
operation but far more efficiently using hardware acceleration.
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/