Graphics.DrawImage 的问题

birdcwd 2013-03-25 08:42:52


用的是 Graphics.DrawImage(newImage, destRect, srcRect, units)

代码是:
Dim newImage As Image = PictureBox1.Image
Dim destRect As New Rectangle(0, 0, 1120, 1120)
Dim srcRect As New Rectangle(1520,240,2640,1360)
Dim units As GraphicsUnit = GraphicsUnit.Pixel

gr.DrawImage(newImage, destRect, srcRect, units)
PictureBox2.Image = resultBitmap

为什么截到的图变形了呢?看起来是横向上多了一部分
...全文
93 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
gxingmin 2013-03-25
  • 打赏
  • 举报
回复
PictureBox2的size是1120*1120? 如果不是就是picturebox2把这个图像拉伸了

16,554

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧