convert_from_pixels


Description:

public void convert_from_pixels (ref double x, ref double y)

Converts a coordinate from pixels to the canvas coordinate space.

The pixel coordinate space specifies pixels from the top-left of the entire canvas window, according to the current scale setting. See set_scale.

The canvas coordinate space is specified in the call to set_bounds.

Parameters:

this

a Canvas.

x

a pointer to the x coordinate to convert.

y

a pointer to the y coordinate to convert.




2022 vala-language.org