知道Ab. VB .Net [英] Know Abount VB.Net
本文介绍了知道Ab. VB .Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何缩放图像?在哪个控件?
如何打印图像?并显示打印预览图像
解决方案
Windows窗体中没有图像缩放支持。您可以在表单上放置一个面板,然后自己绘制面板,然后在绘制之前对图像执行GDI + Matrix变换。
同样,您可以编写代码以在图形上绘制打印时从PrintPageEventArgs参数传递。它就像
e.Graphics.DrawImage(image,top,left);
How To Zoom A Image ? And In Which Control?
How To Print A Image? And Show Print Preview That Image
解决方案
There is no image zooming support in Windows Forms. You can the put a panel on the form then draw the panel yourself, before drawing you do a GDI+ Matrix transform to the image.
Similarly you can write code to draw on the graphics passed from the PrintPageEventArgs parameter when printing. It is as simple as
e.Graphics.DrawImage(image, top, left);
这篇关于知道Ab. VB .Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文