by Lefteris Eleftheriades (29 Submissions)
Category: Graphics
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (9 Votes)
Rotate a picture at any given angle in realtime. Also scale it, use transparent color, alphablending and hue change. Uses a C dll source included.
For the compiled dll:
https://www2.cs.ucy.ac.cy/~cs06ee1/rotatedll.zip
*UPDATE: 22/7/2010 Fixed memory leak*
API DeclarationsPrivate Declare Function rotatedc Lib "rotate.dll" Alias "rotatedc" (ByVal aHDC As Long, ByVal Angle As Single, ByVal X As Long, ByVal Y As Long, ByVal W As Long, ByVal H As Long, ByVal hBitmap As Long, ByVal pScale As Single, ByVal TraspColor As Long, ByVal Alpha As Single) As Long