Clears the drawing area to the specified color.
void Clear( const D2D1_COLOR_F & clearColor );
Type: const D2D1_COLOR_F*
The color to which the drawing area is cleared, or NULL for transparent black.
This method does not return a value.
Direct2D interprets the clearColor as straight alpha (not premultiplied). If the render target's alpha mode is D2D1_ALPHA_MODE_IGNORE, the alpha channel of clearColor is ignored and replaced with 1.0f (fully opaque).
If the render target has an active clip (specified by PushAxisAlignedClip), the clear command is applied only to the area within the clip region.
|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]|