set_keep_aspect_ratio


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.0" ) ]
public void set_keep_aspect_ratio (bool keep_aspect)

Warning: set_keep_aspect_ratio is deprecated since 1.12.

Sets whether this should have a preferred size maintaining the aspect ratio of the underlying image

Note:

Use Image and set_content_gravity with RESIZE_ASPECT instead

Parameters:

this

a Texture

keep_aspect

true to maintain aspect ratio