Is there anyway to rotate a picture (image1) without using DLL and all these other calls. All I want to do is rotate the picture a little in a few lines of code
Printable View
Is there anyway to rotate a picture (image1) without using DLL and all these other calls. All I want to do is rotate the picture a little in a few lines of code
I think that Shree answered this question before. For everything that involved picture - Shree is the MAN.
angle = 30 * 3.14 / 180
slope = Tan(angle)
for j = 0 to Picture1.ScaleHeight
i = (Picture1.ScaleHeight - j) * slope
BitBlt Picture2.hDC, i, j, Picture1.ScaleWidth, 1, Picture1.hDC, 0, j, vbSrcCopy
next
Picture2.Refresh
Iouri Boutchkine
[email protected]