Table of Contents

Method UseLayer

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Core.dll

UseLayer(IDeviceContext, in RectFloat?, IGeometry?, AntialiasMode, in Matrix3x2Float?, float, IDeviceBrush?, LayerOptions, IDeviceLayer?)

public static PushLayerScope UseLayer(this IDeviceContext deviceContext, in RectFloat? contentBounds = null, IGeometry? geometricMask = null, AntialiasMode maskAntialiasMode = AntialiasMode.PerPrimitive, in Matrix3x2Float? maskTransform = null, float opacity = 1, IDeviceBrush? opacityBrush = null, LayerOptions layerOptions = LayerOptions.None, IDeviceLayer? layer = null)

Parameters

deviceContext IDeviceContext
contentBounds RectFloat?
geometricMask IGeometry
maskAntialiasMode AntialiasMode
maskTransform Matrix3x2Float?
opacity float
opacityBrush IDeviceBrush
layerOptions LayerOptions
layer IDeviceLayer

Returns

PushLayerScope