Table of Contents

Class SpotDiffuseEffect

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

Use the spot-diffuse lighting effect to create an image that appears to be a non-reflective surface with where the light source is limited to a directed cone of light and the light is scattered in all directions.

This effect uses the alpha channel as a height map and lights the image with a spot light source.

The color of the output bitmap is a result of light color, light position, and the surface geometry.

The alpha channel output for each pixel with diffuse lighting is always 1.0.

For more information, see Spot-diffuse lighting effect

public sealed class SpotDiffuseEffect : DeviceEffect<SpotDiffuseEffect.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IInternalImpl, IObjectRef, IIsDisposed, IDisposable
Inheritance
SpotDiffuseEffect
Implements
Inherited Members
Extension Methods

Constructors

SpotDiffuseEffect(IDeviceEffectFactory)