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.
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] |
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
Header |
|
See also
- ID2D1RenderTarget::CreateGradientStopCollection
- ID2D1BitmapBrush::SetExtendModeX
- ID2D1BitmapBrush::SetExtendModeY