Click or drag to resize

DXFReaderNETControlPixelToWorld Method

Converts a screen pixel distance to world coordinate distance.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public float PixelToWorld(
	int pixel
)

Parameters

pixel
Type: SystemInt32
The distance in screen pixels.

Return Value

Type: Single
The corresponding distance in world coordinate units.
Remarks
This method performs coordinate system transformation from the control's screen coordinate system to the drawing's world coordinate system (WCS). It accounts for the current zoom level and viewport transformation. Use WorldToPixel(Single) for the inverse transformation.
See Also