Enum Window.ContentScaleAspectEnum
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum Window.ContentScaleAspectEnum : long
Fields
Expand = 4
The content's aspect will be preserved. If the target size has different aspect from the base one, the content will stay in the top-left corner and add an extra visible area in the stretched space.
Ignore = 0
The aspect will be ignored. Scaling will simply stretch the content to fit the target size.
Keep = 1
The content's aspect will be preserved. If the target size has different aspect from the base one, the image will be centered and black bars will appear on left and right sides.
KeepHeight = 3
The content can be expanded horizontally. Scaling vertically will result in keeping the height ratio and then black bars on top and bottom sides.
KeepWidth = 2
The content can be expanded vertically. Scaling horizontally will result in keeping the width ratio and then black bars on left and right sides.