ID2D1HwndRenderTarget::Resize methods (Windows)

Switch View :
ScriptFree
ID2D1HwndRenderTarget::Resize methods
Changes the size of the render target to the specified pixel size.

Overload list

MethodDescription
Resize(D2D1_SIZE_U&)

Changes the size of the render target to the specified pixel size.

Resize(D2D1_SIZE_U*)

Changes the size of the render target to the specified pixel size.

Remarks

After this method is called, the contents of the render target's back-buffer are not defined, even if the D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS option was specified when the render target was created.

Requirements

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1HwndRenderTarget

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Community Content

Solokiller
Usage
I think it's important to note that this method will always fail if it's called between a BeginDraw and EndDraw call. It should be mentioned here, even if it's painfully obvious.