Add methods for converting resolution independent pixels (dp) to real pixels and the other way round.