Home Cooker Classes Others Rice CookerGX
Classes  >  window  >  PointToScreen(int,int)
window class : PointToScreen(int,int) method

Description

Converts the client coordinates on the window to the screen coordinates.

Syntax

windowInstance.PointToScreen(int x, int y)

Arguments

ClassNameDescription
intxx-coordinate of the client coordinates.
intyy-coordinate of the client coordinates.

Return value

None

Sample code

//anyWindow is a instance of window type.

int x = 100;

int y = 100;

anyWindow.PointToScreen(x, y);//The individual conversion values are stored in the arguments after the execution.

Notes

It's a wrapper of the System.Windows.Forms.Form.PointToScreen(Point).

The client coordinates(in pixels) on the window which is passed by the arguments will be converted to screen coordinates(in pixels).

The return value which is converted will be stored in the argument.

Links for reference

Copyright © Rice All rights reserved.