我试图使用Mono来加载一个位图,并在Linux上打印,但我得到一个exception。 Mono是否支持在Linux上打印? 代码/例外情况如下:
编辑:不再是例外,但我仍然好奇什么样的支持。 留下后代的代码什么的。
private void btnPrintTest_Click(object sender,EventArgs e) { _printDocTest.DefaultPageSettings.Landscape = true; _printDocTest.DefaultPageSettings.Margins = new Margins(50,50,50); _printDocTest.Print(); } void _printDocTest_PrintPage(object sender,PrintPageEventArgs e) { var bmp = new Bitmap("test.bmp"); // Determine center of graph var xCenter = e.MarginBounds.X + (e.MarginBounds.Width - bmp.Width) / 2; var yCenter = e.MarginBounds.Y + (e.MarginBounds.Height - bmp.Height) / 2; e.Graphics.DrawImage(bmp,xCenter,yCenter); e.HasMorePages = false; }
使用ScheduledTasks类删除预定作业
在取消button上需要第二次按下
如何判断Windows何时处于非活动状态
testing/debuggingShell Extension&Regasm&explorer.exe
如何在.NET应用程序中正确实现“以pipe理员身份”或“以pipe理员身份运行”选定的操作?
有效字幕文本颜色 – 检测变化(在.Net中)
GetSystemTimeZones缺lessGMT标准时间
exe_common.inl中的非法指令
确定窗口是否正在播放声音
从单声道文件 ,我认为是的:
Managed.Windows.Forms(aka System.Windows.Forms):一个完整的跨平台,基于System.Drawing的Winforms实现。
如果您首先运行Mono Migration Analyzer ,也很有用。
根据
System.Drawing现在已经完成,除了作为Windows.Forms的底层渲染引擎之外,它还经过了严格依赖于它的第三方控件的测试。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。