无法在一页中打印完整图像 [英] Cant print full image in one page
本文介绍了无法在一页中打印完整图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我打印图像的代码
My code to print image
if (Path.GetExtension(txt_Browse.Text) == ".jpeg" || Path.GetExtension(txt_Browse.Text) == ".jpeg" || Path.GetExtension(txt_Browse.Text) == ".png" || Path.GetExtension(txt_Browse.Text) == ".png" || Path.GetExtension(txt_Browse.Text) == ".jpg" || Path.GetExtension(txt_Browse.Text) == ".gif" || Path.GetExtension(txt_Browse.Text) == ".bmp")
{
System.Drawing.Image i = System.Drawing.Image.FromFile(txt_Browse.Text);
Point p = new Point(100, 100);
ev.Graphics.DrawImage(i, p);
}
当我尝试使用此代码时我无法获得完整图像但仅限半张图片出现在打印预览中,请帮助我们获取完整图片。
提前谢谢
when i try to use this code i cant get full image but only half image comes in print preview,please help in getting full image.
thanks in advance
推荐答案
我认为你的图片尺寸相当大。为什么不改变图像文件的大小......?
I think your image size is quite large. Why dont you change the size of your image file ...?
这篇关于无法在一页中打印完整图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文