int LogicalToDeviceX(float x)
Converts logical X coordinate to device coordinate, using the current mapping mode.