c#如何实现窗体上位图的放大和缩小
1个回答
展开全部
PictureBox放大50%:PictureBox1.Sizeof(new Size(1.5,1.5))
PictureBox缩小50%:PictureBox1.Sizeof(new Size(0.5,0.5))
Graphics缩小50%:Graphics.DrawImage(b,new Point(0,0),new Size(b.Width / 2,b.Height / 2));
Graphics放大50%:Graphics.DrawImage(b,new Point(0,0),new Size(b.Width / 2 + b.Width,b.Height / 2 + b.Height));
PictureBox缩小50%:PictureBox1.Sizeof(new Size(0.5,0.5))
Graphics缩小50%:Graphics.DrawImage(b,new Point(0,0),new Size(b.Width / 2,b.Height / 2));
Graphics放大50%:Graphics.DrawImage(b,new Point(0,0),new Size(b.Width / 2 + b.Width,b.Height / 2 + b.Height));
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询