如何在使用printdocument的情况下打印绘画图片 [英] how to print the paint picture in using printdocument
本文介绍了如何在使用printdocument的情况下打印绘画图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在datagridview中有图片.我想使用printdocument打印该picturec.
推荐答案
为什么不查看文档?请参阅带有代码示例的MDSN页面:
http://msdn.microsoft.com/en-us/library/system. drawing.printing.printdocument.aspx [ ^ ].
我必须继续……但是由于代码示例中没有图片,您是否仍然可能不知道如何绘制图片?在这种情况下,您能否在此示例中找到en.Graphics
?此属性的类型为System.Drawing.Graphics
.看看此类可以做什么:
http://msdn.microsoft.com/en-us/library/system.drawing. graphics.aspx [^ ].
我希望现在就明白了.
—SA
Why not looking at documentation? Please see the MDSN page with the code sample:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^].
I have to continue… but could it be possible that you still don''t know how to draw a picture because there is no a picture in the code sample? In this case, can you locateen.Graphics
in this sample? The type of this property isSystem.Drawing.Graphics
. Look what this class can do:
http://msdn.microsoft.com/en-us/library/system.drawing.graphics.aspx[^].
I hope it''s clear now.
—SA
这篇关于如何在使用printdocument的情况下打印绘画图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文