|
-
August 27th, 2001, 01:51 PM
#1
Picture Rotation
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
-
August 28th, 2001, 07:01 AM
#2
Re: Picture Rotation
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]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|