当前位置:网站首页>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;
}
边栏推荐
- STM32CubeMX 學習(5)輸入捕獲實驗
- [supplementary question] 2021 Niuke summer multi school training camp 9-N
- 数论模板啊
- 使用pytorch搭建MobileNetV2并基于迁移学习训练
- Sword finger offer (simple level)
- 电子学:第013课——实验 14:可穿戴的脉冲发光体
- TCP MIN_RTO 辩证考
- Functions should not specify operation types through variables
- Network model -- OSI model and tcp/ip model
- Logu P2486 [sdoi2011] coloring (tree chain + segment tree + merging of intervals on the tree)
猜你喜欢

PH neutralization process modeling

To understand the difference between Gram-positive and Gram-negative bacteria and the difference in pathogenicity

Solving some interesting problems with recurrence of function

Matlab code format one click beautification artifact

Remove headers from some pages in a word document

STM32CubeMX 学习(5)输入捕获实验

First experience Amazon Neptune, a fully managed map database

每日刷题记录 (三)

Sword finger offer (simple level)

电子学:第008课——实验 6:非常简单的开关
随机推荐
Not afraid of losing a hundred battles, but afraid of losing heart
[supplementary question] 2021 Niuke summer multi school training camp 4-N
Can transparent cloud gateway caniot and candtu record can messages and send and receive can data remotely
Deep learning series 48:deepfaker
洛谷P2048 [NOI2010] 超级钢琴(RMQ+优先队列)
线程+线程问题记录
初体验完全托管型图数据库 Amazon Neptune
Application of can optical transceiver of ring network redundant can/ optical fiber converter in fire alarm system
Ffmpeg+sdl2 for audio playback
【补题】2021牛客暑期多校训练营4-n
[supplementary question] 2021 Niuke summer multi school training camp 9-N
Anaconda based module installation and precautions
双周投融报:资本埋伏Web3基础设施
FM signal, modulated signal and carrier
电子学:第010课——实验 8:继电振荡器
LeetCode_ Hash table_ Medium_ 454. adding four numbers II
企业全面云化的时代——云数据库的未来
[red flag Cup] Supplementary questions
电子学:第008课——实验 6:非常简单的开关
Electronics: Lesson 012 - Experiment 11: light and sound