---
UID: NE:d2d1svg.D2D1_SVG_ASPECT_ALIGN
title: D2D1_SVG_ASPECT_ALIGN (d2d1svg.h)
description: The alignment portion of the SVG preserveAspectRatio attribute.
old-location: direct2d\d2d1_svg_aspect_align.htm
tech.root: Direct2D
ms.assetid: 9B60A60B-7838-404B-B39E-75A8F0F90DF8
ms.date: 12/05/2018
ms.keywords: D2D1_SVG_ASPECT_ALIGN, D2D1_SVG_ASPECT_ALIGN enumeration [Direct2D], D2D1_SVG_ASPECT_ALIGN_FORCE_DWORD, D2D1_SVG_ASPECT_ALIGN_NONE, D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MAX, D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MID, D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MIN, D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MAX, D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MID, D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MIN, D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MAX, D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MID, D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MIN, d2d1svg/D2D1_SVG_ASPECT_ALIGN, d2d1svg/D2D1_SVG_ASPECT_ALIGN_FORCE_DWORD, d2d1svg/D2D1_SVG_ASPECT_ALIGN_NONE, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MAX, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MID, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MIN, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MAX, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MID, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MIN, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MAX, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MID, d2d1svg/D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MIN, direct2d.d2d1_svg_aspect_align
f1_keywords:
- d2d1svg/D2D1_SVG_ASPECT_ALIGN
dev_langs:
- c++
req.header: d2d1svg.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- HeaderDef
api_location:
- d2d1svg.h
api_name:
- D2D1_SVG_ASPECT_ALIGN
targetos: Windows
req.typenames: D2D1_SVG_ASPECT_ALIGN
req.redist: 
ms.custom: 19H1
---

# D2D1_SVG_ASPECT_ALIGN enumeration


## -description


The alignment portion of the SVG preserveAspectRatio attribute.


## -enum-fields




### -field D2D1_SVG_ASPECT_ALIGN_NONE

The alignment is set to SVG's 'none' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MIN

The alignment is set to SVG's 'xMinYMin' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MIN

The alignment is set to SVG's 'xMidYMin' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MIN

The alignment is set to SVG's 'xMaxYMin' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MID

The alignment is set to SVG's 'xMinYMid' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MID

The alignment is set to SVG's 'xMidYMid' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MID

The alignment is set to SVG's 'xMaxYMid' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MIN_Y_MAX

The alignment is set to SVG's 'xMinYMax' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MID_Y_MAX

The alignment is set to SVG's 'xMidYMax' value.


### -field D2D1_SVG_ASPECT_ALIGN_X_MAX_Y_MAX

The alignment is set to SVG's 'xMaxYMax' value.


### -field D2D1_SVG_ASPECT_ALIGN_FORCE_DWORD

