Changes the logical size of this virtual surface object.
HRESULT Resize( UINT width, UINT height );
The new width of the virtual surface, in pixels. The maximum width is 16,777,216 pixels.
The new height of the virtual surface, in pixels. The maximum height is 16,777,216 pixels.
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See DirectComposition Error Codes for a list of error codes.
When a virtual surface is resized, its contents are preserved up to the new boundaries of the surface. If the surface is made smaller, any previously allocated pixels that fall outside of the new width or height are discarded.
This method fails if width or height exceeds 16,777,216 pixels.
|Minimum supported client||Windows 8 [desktop apps only]|
|Minimum supported server||Windows Server 2012 [desktop apps only]|