方法:在多个A4页面上剪切图像 [英] How: Cut the images on multiple A4 pages

查看:80
本文介绍了方法:在多个A4页面上剪切图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将图像分成图片框?以厘米为单位改变大小!作为应用内ace poster

how to divide the image into picturebox ? changing the size in centimeters ! as in-app "ace poster"

推荐答案

Horizo​​ntalResolution和VerticalResolution属性包含该Image对象的DPI分辨率。 Wifth和Height将以像素为单位给出实际大小。计算有多少像素代表厘米很简单。此时,您可以定义等于A4纸张的矩形。您可以使用 Bitmap.Clone [ ^ ]提取图块。

只是一个注意事项:如果你想要所有这些都在瓷砖上打印,你应该关心不可打印的边距和重叠。
The HorizontalResolution and VerticalResolution properties contain the resolution in DPI of that Image object. Wifth and Height will give you the actual size in pixels. It is simple to calculate how many pixels represent a centimeter. At that point you can define the rectangle that equals to an A4 sheet. You can use Bitmap.Clone[^] to extract the tiles.
Just a note: if you want all this to print in tiles, you should care about the non-printable margins and of the overlap.


这篇关于方法:在多个A4页面上剪切图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆