 <p>Dip x screen density = pixels (actual image size)</p> <p>dp to px formula</p> <pre><code>displayMetrics = context.getResources().getDisplayMetrics(); return (int)((dp * displayMetrics.density) + 0.5); </code></pre> <p>As answered by Bram.</p>