The formula to calculate the Pixel Density (PD) is:
\[ PD = PPIw \times PPIh \]
Where:
Pixel density is defined as the total number of pixels per square inch of a screen. It can also be defined as the number of pixels per square mm or any other unit of length, but an inch is the most common.
Example 1:
Using the formula:
\[ PD = 300 \times 300 = 90000 \text{ pixels per square inch} \]
Example 2:
Using the formula:
\[ PD = 400 \times 400 = 160000 \text{ pixels per square inch} \]