convert_to_pixels


Description:

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

Converts a coordinate from the canvas coordinate space to pixels.

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

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

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