当前位置:网站首页>Unit conversion - mm to pixel - pixel to MM
Unit conversion - mm to pixel - pixel to MM
2022-06-25 08:14:00 【Plug in development】
List of articles
1. Mm to pixel
Inches = Mm / 25.4;
sizes = Inches * DPI ;
// Mm to pixel
static int MM2Px(double val, double dpi){
val = val / 25.4;
int px = val*dpi;
return px;
}
2. Pixels to millimeters
sizes / DPI = Inches ;
Inches * 25.4 = Mm ;
// Mm to pixel
static double Px2MM(double val, double dpi){
val = val / dpi;
double mm = val*25.4;
return mm;
}
边栏推荐
- Use Adobe Acrobat pro to resize PDF pages
- Self made ramp, but it really smells good
- FFT [template]
- Dietary intervention reduces cancer treatment-related symptoms and toxicity
- Wechat applet introduction record
- Anaconda based module installation and precautions
- 六月集训(第25天) —— 树状数组
- TCP 加速小记
- Matlab code format one click beautification artifact
- PH neutralization process modeling
猜你喜欢

c#ColorDialog更改文本颜色和FontDialog更改文本字体的使用示例

2022年毕业生求职找工作青睐哪个行业?

深度学习系列48:DeepFaker

Sword finger offer (medium level)

Opencv daily function structure analysis and shape descriptor (8) Fitline function fitting line

Looking for b-end product manager after years? I almost ruined myself

Apache CouchDB Code Execution Vulnerability (cve-2022-24706) batch POC

飞机引气系统的建模与故障仿真

Socket problem record
![洛谷P1073 [NOIP2009 提高组] 最优贸易(分层图+最短路)](/img/cb/046fe4b47898fd6db86edc8a267c34.png)
洛谷P1073 [NOIP2009 提高组] 最优贸易(分层图+最短路)
随机推荐
Luogu p2048 [noi2010] super Piano (rmq+ priority queue)
TCP stuff
电子学:第014课——实验 15:防入侵报警器(第一部分)
FFT [template]
Startup, shutdown and restart of Oracle and MySQL on Linux
socket问题记录
Deep learning series 45: overview of image restoration
Can transparent cloud gateway caniot and candtu record can messages and send and receive can data remotely
牛客:飞行路线(分层图+最短路)
力扣 272. 最接近的二叉搜索树值 II 递归
企业全面云化的时代——云数据库的未来
LeetCode_ Hash table_ Medium_ 454. adding four numbers II
函数尽量不要通过变量指定操作类型
Remove headers from some pages in a word document
現在通過開戶經理發的開戶鏈接股票開戶安全嗎?
电子学:第009课——实验 7:研究继电器
RMQ interval maximum subscript query, interval maximum
TCP and UDP
Pychart's wonderful setting: copy immediately after canceling the comment and bring #
Drawing of clock dial