缩放:http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&Id=89637
旋转
http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&Id=91470
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=65593
左右旋转非常好用,感谢大佬。
图片我想用按钮实现放大镜功能,点击自动放大一定的倍数,另一个按钮点击实现直接还原本显示来的图片大小,这个用缩放的那个方式可以吗
或者看看:http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=65142&skin=0
Dim file As String = e.Form.Controls("url").Value
Dim img As image = getImage(file)
Dim bmp As bitmap
If img.width > 800 Then
If 800 * (img.height / img.width) > 600 Then
bmp = New bitmap(img, 800 * (600 / (800 * (img.height / img.width))), 600)
Else
bmp = New bitmap(img, 800, 800 * (img.height / img.width))
End If
End If
bmp.save(file)
bmp.Dispose
e.Form.Controls("p1").ImageFile = file