Table of Contents

Class DistantDiffuseEffect

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

Use the distant-diffuse lighting effect to create an image that appears to be a non-reflective surface with where the light source appears to be coming from a long distance (like the sun or overhead lights) and the light is scattered in all directions. This effect uses the alpha channel as a height map and lights the image with a distant light source.

The color of the output bitmap is a result of light color, light position, and the surface geometry of the image. The alpha channel output for each pixel with diffuse lighting is always 1.0.

For more information, see Distant-diffuse lighting effect

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

Constructors

DistantDiffuseEffect(IDeviceEffectFactory)