DXGI_MODE_SCALING enumeration

Flags indicating how an image is stretched to fit a given monitor's resolution.

Syntax

typedef enum DXGI_MODE_SCALING { 
  DXGI_MODE_SCALING_UNSPECIFIED  = 0,
  DXGI_MODE_SCALING_CENTERED     = 1,
  DXGI_MODE_SCALING_STRETCHED    = 2
} DXGI_MODE_SCALING;

Constants

  • DXGI_MODE_SCALING_UNSPECIFIED
    Unspecified scaling.

  • DXGI_MODE_SCALING_CENTERED
    Specifies no scaling. The image is centered on the display. This flag is typically used for a fixed-dot-pitch display (such as an LED display).

  • DXGI_MODE_SCALING_STRETCHED
    Specifies stretched scaling.

Remarks

Selecting the CENTERED or STRETCHED modes can result in a mode change even if you specify the native resolution of the display in the DXGI_MODE_DESC. If you know the native resolution of the display and want to make sure that you do not initiate a mode change when transitioning a swap chain to full screen (either via ALT+ENTER or IDXGISwapChain::SetFullscreenState), you should use UNSPECIFIED.

This enum is used by the DXGI_MODE_DESC1 and DXGI_SWAP_CHAIN_FULLSCREEN_DESC structures.

Requirements

Header

DXGI.h

See also

DXGI Enumerations