The vertical and horizontal scale is the same. I don't think that you are looking in the right direction. Use B4XImageView with the default FIT mode and the proportion will be correct.
You can get the device scale with:
GetDeviceLayoutValues.NonnormalizedScale
I don't see how it will help.