当前位置:网站首页>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;
}
边栏推荐
- FM signal, modulated signal and carrier
- LeetCode_ Hash table_ Medium_ 454. adding four numbers II
- CVPR 2022 Oral 2D图像秒变逼真3D物体
- 剑指offer刷题(中等等级)
- 洛谷P6822 [PA2012]Tax(最短路+边变点)
- Sword finger offer (simple level)
- Drawing of clock dial
- Cloud computing exam version 1 0
- Electronics: Lesson 008 - Experiment 6: very simple switches
- 电子学:第012课——实验 13:烧烤 LED
猜你喜欢
图像超分综述:超长文一网打尽图像超分的前世今生 (附核心代码)
Overview of image super score: the past and present life of image super score in a single screen (with core code)
电子学:第008课——实验 6:非常简单的开关
c#搭建ftp服务器并实现文件上传和下载
电子学:第014课——实验 15:防入侵报警器(第一部分)
Mining microbial dark matter -- a new idea
The era of enterprise full cloud -- the future of cloud database
电子学:第012课——实验 11:光和声
Electronics: Lesson 008 - Experiment 6: very simple switches
Stm32cubemx learning (5) input capture experiment
随机推荐
417 sequence traversal of binary tree 1 (102. sequence traversal of binary tree, 107. level traversal of binary tree II, 199. right view of binary tree, 637. layer average of binary tree)
How do I install the software using the apt get command?
STM32CubeMX 学习(5)输入捕获实验
TCP 加速小记
剑指offer刷题(简单等级)
洛谷P2486 [SDOI2011]染色(树链+线段树 + 树上区间合并 )
Electronics: Lesson 014 - Experiment 15: intrusion alarm (Part I)
socket问题记录
电子学:第009课——实验 7:研究继电器
Application of can optical transceiver of ring network redundant can/ optical fiber converter in fire alarm system
双周投融报:资本埋伏Web3基础设施
图像超分综述:超长文一网打尽图像超分的前世今生 (附核心代码)
Sword finger offer (medium level)
Electronics: Lesson 010 - Experiment 9: time and capacitors
Electronics: Lesson 013 - Experiment 14: Wearable pulsed luminaries
Deep learning series 45: overview of image restoration
Black dot = = white dot (MST)
唐老师讲运算放大器(第七讲)——运放的应用
[supplementary question] 2021 Niuke summer multi school training camp 9-N
深度学习系列48:DeepFaker