DXFReaderNETControlPixelToWorld Method
|
Converts a screen pixel distance to world coordinate distance.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntaxpublic float PixelToWorld(
int pixel
)
Public Function PixelToWorld (
pixel As Integer
) As Single
public:
float PixelToWorld(
int pixel
)
member PixelToWorld :
pixel : int -> float32
METHOD PixelToWorld(
pixel AS LONG
) AS REAL4
Parameters
- pixel
- Type: SystemInt32
The distance in screen pixels.
Return Value
Type:
SingleThe 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