Add dpToPxFloat method in PixelHelper.