ID2D1DeviceContext::PushLayer method

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

Syntax

void PushLayer(
  const D2D1_LAYER_PARAMETERS1 *layerParameters,
  ID2D1Layer                   *layer
);

Parameters

layerParameters

Type: const D2D1_LAYER_PARAMETERS1*

The parameters that defines the layer.

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

This method does not return a value.

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