Instructions
Turn the pixel into a fraction to convert it to a percentage. Think of a pixel as a fraction over a denominator of 16. If you have 12 pixels, think of this as 12/16 pixels.
Multiply the numerator of the fraction by 100, and divide by 16 to convert pixels to fractions. If you have 12/16 pixels, 12 x 100 is 1200/16 = 75 percent.
Turn the percentage into a fraction to convert it to pixels. Fifty percent is really 50/100, for example.
Multiply the numerator of the percent by 16 and divide by 100 to turn the percentage into pixels. If you have 50/100 and want to turn this into pixels, 50 x 16 = 800/100 = 8 pixels.