在a4,a3纸上打印图像 [英] printing an image in a4,a3 sheet
本文介绍了在a4,a3纸上打印图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在a4或a3纸上打印图像.我该怎么做
Hi,
i want to print an image in a4 or a3 sheet.how can i do this
推荐答案
您好,您可以使用PrintDocument [
Hi, you can print an image using the PrintDocument[^] class.
Just use theGraphics.DrawImage(
) method in the PrintDocument''sPrintPage
event:
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawImage(m_image, 0, 0);
}
上面的代码假定您的图像已加载到
The above code assumes that your image is loaded in
Bitmap m_image;
成员中.
要设置纸张尺寸,可以使用PrintDocument的DefaultPageSettings.PaperSize
属性.
我希望这有帮助! :)
问候
member.
For setting the paper size you can use PrintDocument''s DefaultPageSettings.PaperSize
property.
I hope this helps! :)
Regards
这篇关于在a4,a3纸上打印图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文