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 = 0,
D2D1_EXTEND_MODE_WRAP = 1,
D2D1_EXTEND_MODE_MIRROR = 2,
D2D1_EXTEND_MODE_FORCE_DWORD = 0xffffffff
} ;
Constants
D2D1_EXTEND_MODE_CLAMP Value: 0 Repeat the edge pixels of the brush's content for all regions outside the normal content area. |
D2D1_EXTEND_MODE_WRAP Value: 1 Repeat the brush's content. |
D2D1_EXTEND_MODE_MIRROR Value: 2 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 Value: 0xffffffff |
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
Requirement | Value |
---|---|
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