Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID2D1ResourceTexture::Update method

Updates the specific resource texture inside the specific range or box using the supplied data.

Syntax


HRESULT Update(
  [in, optional]  const UINT32 *minimumExtents,
  [in, optional]  const UINT32 *maximumExtents,
  [in]            const UINT32 *strides,
  UINT32 dimensions,
  [in]            const BYTE *data,
  UINT32 dataCount
) const;

Parameters

minimumExtents [in, optional]

Type: const UINT32*

The "left" extent of the updates if specified; if NULL, the entire texture is updated.

maximumExtents [in, optional]

Type: const UINT32*

The "right" extent of the updates if specified; if NULL, the entire texture is updated.

strides [in]

Type: const UINT32*

The stride to advance through the input data, according to dimension.

dimensions

Type: UINT32

The number of dimensions in the resource texture. This must match the number used to load the texture.

data [in]

Type: const BYTE*

The data to be placed into the resource texture.

dataCount

Type: UINT32

The size of the data buffer to be used to update the resource texture.

Return value

Type: HRESULT

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULTDescription
S_OKNo error occurred.
E_OUTOFMEMORYDirect2D could not allocate sufficient memory to complete the call.
E_INVALIDARGAn invalid parameter was passed to the returning function.

 

Remarks

The number of dimensions in the update must match those of the created texture.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1effectauthor.h

Library

D2d1.lib

See also

ID2D1ResourceTexture
ID2D1EffectContext::CreateResourceTexture

 

 

Community Additions

Show:
© 2014 Microsoft