Table of Contents

Class DeviceEffect

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll
public abstract class DeviceEffect : RefTrackedObject, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IInternalImpl, IObjectRef, IIsDisposed, IDisposable
Inheritance
DeviceEffect
Implements
Derived
Inherited Members
Extension Methods

Properties

Factory

Retrieves the factory associated with this resource.

InputCount

Gets or sets the number of inputs to the effect.

Properties
PropertyCount

Methods

Dispose(bool)
GetInput(int)

Gets the given input image by index.

GetValue(int, DeviceEffectPropertyType, Span<byte>)
GetValueByName(string, DeviceEffectPropertyType, Span<byte>)
GetValueRef(int, DeviceEffectPropertyType, Type)
GetValueRefByName(string, DeviceEffectPropertyType, Type)
GetValueSize(int)
IsInputSet(int)

Allows you to check if an input is set (non-null) without allocating a ref to it.

SetInput(int, IDeviceImage?, bool)

Sets the given input image by index.

SetValue(int, DeviceEffectPropertyType, ReadOnlySpan<byte>)
SetValueByName(string, DeviceEffectPropertyType, ReadOnlySpan<byte>)
SetValueRef(int, DeviceEffectPropertyType, IObjectRef?)
SetValueRefByName(string, DeviceEffectPropertyType, IObjectRef?)
TryGetPropertyIndex(string, out int)
TryGetPropertyName(int, out string?)
TryGetPropertyType(int, out DeviceEffectPropertyType)
TryGetSubProperties(int, out IDeviceEffectProperties?)
TryGetValueSize(int, out int)