wxCoord DeviceToLogicalYRel(wxCoord y)
Convert device Y coordinate to relative logical coordinate, using the current mapping mode but ignoring the y axis orientation. Use this function for converting a height, for example.