Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D2D1_EXTEND_MODE enumeration

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

Syntax


typedef enum  { 
  D2D1_EXTEND_MODE_CLAMP   = 0,
  D2D1_EXTEND_MODE_WRAP    = 1,
  D2D1_EXTEND_MODE_MIRROR  = 2
} D2D1_EXTEND_MODE;

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.)

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.

For an example, see the Draw Extend Mode Example.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

See also

ID2D1RenderTarget::CreateGradientStopCollection
ID2D1BitmapBrush::SetExtendModeX
ID2D1BitmapBrush::SetExtendModeY

 

 

Community Additions

Show:
© 2014 Microsoft