Skip to content

GraphicsAPI reference

Enum AspectMode

Namespace: MicroEngine.Graphics
Assembly: MicroEngine.Graphics.dll
Guide: Presentation

What happens when the window’s shape differs from the canvas’s (Aspect).

C#
public enum AspectMode

Fields

Expand = 2

Keep the scale and square pixels, and grow the canvas along the window’s longer side so it fills the area: a wider window shows more of the world, never letterbox (CanvasSize). The canvas’s configured size is its minimum.

Keep = 0

Keep the canvas’s shape; the rest of the window is letterbox.

Stretch = 1

Fill the whole area, stretching the canvas to the window’s shape (pixels stop being square).