DXFReaderNETControlWorldToPixel Method
|
Converts a world coordinate distance to screen pixel distance.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntaxpublic float WorldToPixel(
float world
)
Public Function WorldToPixel (
world As Single
) As Single
public:
float WorldToPixel(
float world
)
member WorldToPixel :
world : float32 -> float32
METHOD WorldToPixel(
world AS REAL4
) AS REAL4
Parameters
- world
- Type: SystemSingle
The distance in world coordinate units.
Return Value
Type:
SingleThe corresponding distance in screen pixels.
Remarks
This method performs coordinate system transformation from the drawing's world coordinate system (WCS)
to the control's screen coordinate system. It accounts for the current zoom level and viewport transformation.
Use
PixelToWorld(Int32) for the inverse transformation.
See Also