Can I find out what Autoscale factor has been applied in code? I need it to correct a scale factor which relates the x/y coordinates of devices.
I have items in a database with X/Y co-ordinates stored in MM from an origin. They are positioned by dragging them around a bitmap, and I maintain a scale factor for each bitmap: MMPerPixel.
The App, database and bitmaps are loaded on different tablets with different sizes, scales, resolution etc.
The MMPerPixel factor is adjusted on each tablet by a factor of 100 / 100dip which works well.
If AutoScale is not used then all is well. But it it complicates the overall page layout so I want to use it.
If Autoscale is used then the position of the devices on the bitmaps is out by a factor of the Autoscale factor. I can prove this by enabling and disabling Autoscale, but I can't correct it (other than for a specific tablet type) unless I can find our the factor that is being applied by Autoscale.
I have items in a database with X/Y co-ordinates stored in MM from an origin. They are positioned by dragging them around a bitmap, and I maintain a scale factor for each bitmap: MMPerPixel.
The App, database and bitmaps are loaded on different tablets with different sizes, scales, resolution etc.
The MMPerPixel factor is adjusted on each tablet by a factor of 100 / 100dip which works well.
If AutoScale is not used then all is well. But it it complicates the overall page layout so I want to use it.
If Autoscale is used then the position of the devices on the bitmaps is out by a factor of the Autoscale factor. I can prove this by enabling and disabling Autoscale, but I can't correct it (other than for a specific tablet type) unless I can find our the factor that is being applied by Autoscale.