Chris P
August 27th, 2001, 01:51 PM
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
|
Click to See Complete Forum and Search --> : Picture Rotation Chris P August 27th, 2001, 01:51 PM 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 Iouri August 28th, 2001, 07:01 AM 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 iouri@hotsheet.com codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |