The "camera_get_view_xscale" Function

Syntax

camera_get_view_xscale(camera);
ArgumentTypeDescription
cameracameraThe camera index to check (typically view_camera[#])

Description

Returns the horizontal scale multipler of a view camera scaled with camera_set_view_scale.

If the input view has not been scaled, it will return a value of 1. If the input view does not exist, it will return 0 instead.

Example

image_xscale = camera_get_view_xscale(view_camera[1]);