当前位置:网站首页>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;
}
边栏推荐
猜你喜欢

allgero报错:Program has encountered a problem and must exit. The design will be saved as a .SAV file

Stm32cubemx learning (5) input capture experiment

The era of enterprise full cloud -- the future of cloud database

时钟刻度盘的绘制

Solving some interesting problems with recurrence of function

Use Adobe Acrobat pro to resize PDF pages

双周投融报:资本埋伏Web3基础设施

电子学:第012课——实验 13:烧烤 LED

面试前准备好这些,Offer拿到手软,将军不打无准备的仗

Application of can optical transceiver of ring network redundant can/ optical fiber converter in fire alarm system
随机推荐
Deep learning series 45: overview of image restoration
Sword finger offer (medium level)
Ffmpeg+sdl2 for audio playback
Websocket understanding and application scenarios
Logu P2486 [sdoi2011] coloring (tree chain + segment tree + merging of intervals on the tree)
[supplementary question] 2021 Niuke summer multi school training camp 4-N
TCP stuff
c#搭建ftp服务器并实现文件上传和下载
现在通过开户经理发的开户链接股票开户安全吗?
PHP array function Encyclopedia
C disk drives, folders and file operations
图像超分综述:超长文一网打尽图像超分的前世今生 (附核心代码)
双周投融报:资本埋伏Web3基础设施
Electronics: Lesson 008 - Experiment 6: very simple switches
[thesis study] vqmivc
飞机引气系统的建模与故障仿真
Est - il sûr d'ouvrir un compte d'actions maintenant via le lien d'ouverture de compte coiffé?
Remove headers from some pages in a word document
What is SKU and SPU? What is the difference between SKU and SPU
What is the difference between agreement and service?