一个打印的小经验
来源:互联网 发布:老鼠夹编程乐高 编辑:程序博客网 时间:2024/05/16 15:04
使用GDI+进行绘制时,有一个输出图像的函数:
The DrawImage method draws an image at a specified location.
Syntax
Status DrawImage(
Image *image,
REAL x,
REAL y
);
Parameters
- image
- [in] Pointer to an Image object that specifies the image to be drawn.
- x
- [in] Real number that specifies the x-coordinate of the upper-left corner of the rendered image.
- y
- [in] Real number that specifies the y-coordinate of the upper-left corner of the rendered image.
Return Value
If the method succeeds, it returns Ok, which is an element of the Status enumeration.
If the method fails, it returns one of the other elements of the Status enumeration.
这里没有说明的是,GDI+会自动根据输出DC的分辨率和图像本身的分辨率对输出图像进行拉伸,比如一般的Printer是1200dpi,图像72dpi
这样图像就会被拉伸16倍,造成打印结果不正确,而平时像显示器输出时,由于两者的dpi相同,所以不会有任何问题。
- 一个打印的小经验
- OpenGL的一个小经验
- XSLT的一个小经验
- ASP连接数据库的一个小经验
- WSAASyncSelect模式的一个小经验
- 一个打印菱形的小例子
- 一个小经验.
- 记录一个小经验
- 一个有经验借鉴的小店铺经营之道
- 【经验分享】C#调试数据查询的一个小技巧。
- WebSphere Portal 6.0 Security 设置的一个小经验
- LINUX的多线程编程高效开发经验一个小BUG
- 通过一个小代码回顾C的打印输出格式
- 一个简单的C语言小程序,打印九九乘法表
- C/C++中打印函数的一个小注意点
- Tcpdump的小经验
- Tcpdump的小经验
- matlab的小经验
- Web性能测试术语
- MS Excel MVP的作品集(特供大头网站)
- Oracle函数总结
- 参考多家,终于写出自认为比较好的数值型TextBox
- IME输入法编程 第一章
- 一个打印的小经验
- 网卡地址和多点播送(组播)及广播---转
- 如何解决J2ME开发中遇到提示 ALERT: java/lang/ClassFormatError: Bad version information.的问题?
- 在应用程序中使用启动屏幕和登陆窗口
- GDIPlus的Pen的一个小Bug
- IME输入法编程 第二章
- 备份工具,svn的有效补充,不用扩建分支了
- 关于软件工程的两句话
- Oprofile使用指南