[英]DPI of an image
我有一个要求,我必须检查以blob形式存储在oracle数据库中的一堆图像的DPI,并确保它们高于300 dpi。 我打算通过ac#程序阅读该字段并尝试确定其dpi,但是我不确定如何计算该值。 谁能给我一些有关如何确定其DPI的指导。
顾名思义,DPI代表每英寸的像素数。 要计算它,您需要以英寸和像素为单位的图像大小。 以英寸为单位的尺寸是相对于显示器屏幕dpi而言的,像打印机这样的最佳分辨率使用的英寸数更多。
因此,如果您的图像具有100px和2in,则dpi为100/2 = 50 dpi。 意识到问题在于,如果基本上需要获取英寸参考,则如何确定图像的英寸大小。
然后,将更容易验证上传图像的dpi并保证插入之前所需的图像。
[英]Increase the resolution (dpi) of an image
[英]How to change resolution (DPI) of an image?
[英]Change the image resolution to 300 dpi
[英]Determining resolution (DPI) of an uploaded image
[英]WPF Image as ToolTip - DPI issue
[英]C# change dpi of an uploaded image
[英]DPI, Image width and height vs Quality
[英]Set DPI value to Tiff Image in C#
[英]Saving DrawingVisual to an image file with a given DPI
[英]How to Get DPI of Image in C#
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.