ID2D1RenderTarget::FillRectangle method

Paints the interior of the specified rectangle.

Syntax


virtual void FillRectangle(
  [in]  const D2D1_RECT_F *rect,
  [in]  ID2D1Brush *brush
);

Parameters

rect [in]

Type: const D2D1_RECT_F*

The dimension of the rectangle to paint, in device-independent pixels.

brush [in]

Type: ID2D1Brush*

The brush used to paint the rectangle's interior.

Return value

This method does not return a value.

Remarks

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillRectangle) failed, check the result returned by the ID2D1RenderTarget::EndDraw or ID2D1RenderTarget::Flush methods.

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

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1RenderTarget
Creating a Simple Direct2D Application
Draw Rectangle Example

 

 

Community Additions

ADD
Show:
© 2014 Microsoft