当前位置:网站首页>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;
}
边栏推荐
- 电子学:第012课——实验 11:光和声
- Three Siemens fire-fighting hosts fc18 are equipped with can optical transceiver for optical fiber redundant ring network networking test
- Stm32cubemx Learning (5) Input capture Experiment
- FFT [template]
- [supplementary question] 2021 Niuke summer multi school training camp 9-N
- Mining microbial dark matter -- a new idea
- Black dot = = white dot (MST)
- 深度学习系列45:图像恢复综述
- Log in to MySQL 5.7 under ubuntu18 and set the root password
- 电子学:第009课——实验 7:研究继电器
猜你喜欢

Overview of image super score: the past and present life of image super score in a single screen (with core code)

电子学:第013课——实验 14:可穿戴的脉冲发光体

Sword finger offer (medium level)

Use the frame statistics function of the message and waveform recording analyzer royalscope to troubleshoot the accidental faults of the CAN bus

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

力扣 272. 最接近的二叉搜索树值 II 递归

Matlab code format one click beautification artifact

Talk about the future of cloud native database

socket问题记录

A solution to slow startup of Anaconda navigator
随机推荐
[red flag Cup] Supplementary questions
STM32CubeMX 学习(5)输入捕获实验
[supplementary question] 2021 Niuke summer multi school training camp 4-N
Solving some interesting problems with recurrence of function
Electronics: Lesson 014 - Experiment 15: intrusion alarm (Part I)
June training (day 25) - tree array
c#搭建ftp服务器并实现文件上传和下载
函数尽量不要通过变量指定操作类型
[supplementary question] 2021 Niuke summer multi school training camp 9-N
Drawing of clock dial
[unexpected token o in JSON at position 1 causes and solutions]
Luogu p2839 [national training team]middle (two points + chairman tree + interval merging)
电子学:第012课——实验 11:光和声
Can transparent cloud gateway caniot and candtu record can messages and send and receive can data remotely
洛谷P5994 [PA2014]Kuglarz(异或思维+MST)
双周投融报:资本埋伏Web3基础设施
线程+线程问题记录
Mining microbial dark matter -- a new idea
TCP acceleration notes
Authority design of SaaS system based on RBAC