ID2D1DeviceContext::PushLayer(constD2D1_LAYER_PARAMETERS1,ID2D1Layer) method (d2d1_1.h)

Push a layer onto the clip and layer stack of the device context.

Syntax

void PushLayer(
  [in]           const D2D1_LAYER_PARAMETERS1 *layerParameters,
  [in, optional] ID2D1Layer                   *layer
);

Parameters

[in] layerParameters

Type: const D2D1_LAYER_PARAMETERS1*

The parameters that defines the layer.

[in, optional] layer

Type: ID2D1Layer*

The layer resource to push on the device context that receives subsequent drawing operations.

Note  If a layer is not specified, Direct2D manages the layer resource automatically.
 

Return value

None

Requirements

   
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_1.h
DLL D2d1.dll

See also

ID2D1DeviceContext