High-DPI scaling issues

So is there a way that I can determine the display scaling factor from within a Paint() method?