[求助]旋转图像时出现错误
程序代码:
Private Sub Command6_Click() '旋转图像 Dim srcWidth, srcHeight, i, j Picture1.ScaleMode = 3 '设置坐标度量单位为像素 Picture2.ScaleMode = 3 srcWidth = Picture1.ScaleWidth srcHeight = Picture1.ScaleHeight Picture2.Picture = LoadPicture("") '清除原有图片 For i = 0 To srcWidth - 1 '按宽度循环扫描 For j = 0 To srcHeight - 1 '按高度循环扫描 Picture2.PaintPicture Picture1.Picture, j, i, 1, 1, i, j, 1, 1, vbSrcCopy Next j Next i End Sub
[此贴子已经被作者于2020-5-8 19:24编辑过]