D2D1_EXTEND_MODE enumeration (d2d1.h)

Specifies how a brush paints areas outside of its normal content area.

Syntax

typedef enum D2D1_EXTEND_MODE {
  D2D1_EXTEND_MODE_CLAMP,
  D2D1_EXTEND_MODE_WRAP,
  D2D1_EXTEND_MODE_MIRROR,
  D2D1_EXTEND_MODE_FORCE_DWORD
} ;

Constants

 
D2D1_EXTEND_MODE_CLAMP
Repeat the edge pixels of the brush's content for all regions outside the normal content area.
D2D1_EXTEND_MODE_WRAP
Repeat the brush's content.
D2D1_EXTEND_MODE_MIRROR
The same as D2D1_EXTEND_MODE_WRAP, except that alternate tiles of the brush's content are flipped. (The brush's normal content is drawn untransformed.)
D2D1_EXTEND_MODE_FORCE_DWORD

Remarks

For an ID2D1BitmapBrush, the brush's content is the brush's bitmap. For an ID2D1LinearGradientBrush, the brush's content area is the gradient axis. For an ID2D1RadialGradientBrush, the brush's content is the area within the gradient ellipse.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header d2d1.h

See also

ID2D1BitmapBrush::SetExtendModeX

ID2D1BitmapBrush::SetExtendModeY

ID2D1RenderTarget::CreateGradientStopCollection