Click or drag to resize

DXFReaderNETControlWorldToPixel Method

Converts a world coordinate distance to screen pixel distance.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public float WorldToPixel(
	float world
)

Parameters

world
Type: SystemSingle
The distance in world coordinate units.

Return Value

Type: Single
The 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