[]
ID2D1Effect
[Guid("28211a43-7d89-476f-8181-2d6159b220ad")]
public class Effect : Properties, IDisposable, IUnknown
Initializes a new instance of the Effect class.
public Effect(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
CLSID_D2D12DAffineTransform
public static readonly Guid AffineTransform2D
CLSID_D2D1ArithmeticComposite
public static readonly Guid ArithmeticComposite
CLSID_D2D1Atlas
public static readonly Guid Atlas
CLSID_D2D1BitmapSource
public static readonly Guid BitmapSource
CLSID_D2D1Blend
public static readonly Guid Blend
CLSID_D2D1Border
public static readonly Guid Border
CLSID_D2D1Brightness
public static readonly Guid Brightness
CLSID_D2D1ColorManagement
public static readonly Guid ColorManagement
CLSID_D2D1ColorMatrix
public static readonly Guid ColorMatrix
CLSID_D2D1Composite
public static readonly Guid Composite
CLSID_D2D1ConvolveMatrix
public static readonly Guid ConvolveMatrix
CLSID_D2D1Crop
public static readonly Guid Crop
CLSID_D2D1DirectionalBlur
public static readonly Guid DirectionalBlur
CLSID_D2D1DiscreteTransfer
public static readonly Guid DiscreteTransfer
CLSID_D2D1DisplacementMap
public static readonly Guid DisplacementMap
CLSID_D2D1DistantDiffuse
public static readonly Guid DistantDiffuse
CLSID_D2D1DistantSpecular
public static readonly Guid DistantSpecular
CLSID_D2D1DpiCompensation
public static readonly Guid DpiCompensation
CLSID_D2D1Flood
public static readonly Guid Flood
CLSID_D2D1GammaTransfer
public static readonly Guid GammaTransfer
CLSID_D2D1GaussianBlur
public static readonly Guid GaussianBlur
CLSID_D2D1Histogram
public static readonly Guid Histogram
CLSID_D2D1HueRotation
public static readonly Guid HueRotation
CLSID_D2D1LinearTransfer
public static readonly Guid LinearTransfer
CLSID_D2D1LuminanceToAlpha
public static readonly Guid LuminanceToAlpha
CLSID_D2D1Morphology
public static readonly Guid Morphology
CLSID_D2D1OpacityMetadata
public static readonly Guid OpacityMetadata
CLSID_D2D13DPerspectiveTransform
public static readonly Guid PerspectiveTransform3D
CLSID_D2D1PointDiffuse
public static readonly Guid PointDiffuse
CLSID_D2D1PointSpecular
public static readonly Guid PointSpecular
CLSID_D2D1Premultiply
public static readonly Guid Premultiply
CLSID_D2D1Saturation
public static readonly Guid Saturation
CLSID_D2D1Scale
public static readonly Guid Scale
CLSID_D2D1Shadow
public static readonly Guid Shadow
CLSID_D2D1SpotDiffuse
public static readonly Guid SpotDiffuse
CLSID_D2D1SpotSpecular
public static readonly Guid SpotSpecular
CLSID_D2D1TableTransfer
public static readonly Guid TableTransfer
CLSID_D2D1Tile
public static readonly Guid Tile
CLSID_D2D13DTransform
public static readonly Guid Transform3D
CLSID_D2D1Turbulence
public static readonly Guid Turbulence
CLSID_D2D1UnPremultiply
public static readonly Guid UnPremultiply
CLSID_D2D1YCbCr
public static readonly Guid YCbCr
Gets or sets the associated instance of ICustomEffect.
public ICustomEffect CustomEffect { get; set; }
Initializes a new instance of the Effect class.
public static Effect Create(DeviceContext deviceContext, Guid effectId)
deviceContext DeviceContextThe device context.
effectId System.GuidThe class ID of the effect to create.
The created effect does not increment the reference count for the dynamic-link library (DLL) from which the effect was created. If the application deletes an effect while that effect is loaded, the resulting behavior will be unpredictable.
Initializes a new instance of the Effect class.
public static Effect Create(EffectContext effectContext, Guid effectId)
effectContext EffectContextThe effect context.
effectId System.GuidThe class ID of the effect to create.
Initializes a new instance of a custom Effect class.
public static Effect CreateCustom<T>(DeviceContext deviceContext) where T : ICustomEffect
deviceContext DeviceContextThe device context.
TInitializes a new instance of a custom Effect class.
public static Effect CreateCustom<T>(EffectContext effectContext) where T : ICustomEffect
effectContext EffectContextThe effect context.
TClean up any resources being used.
protected override void Dispose(bool disposing)
disposing boolvoid ID2D1Effect::GetInput([In] unsigned int index,[Out, Optional] ID2D1Image** input)
public Image GetInput(int index)
index intunsigned int ID2D1Effect::GetInputCount()
public int GetInputCount()
void ID2D1Effect::GetOutput([Out] ID2D1Image** outputImage)
public Image GetOutput()
Registers, if necessary, and initializes a new instance of a custom Effect class.
public static Effect RegisterAndCreateCustom<T>(Factory1 factory, DeviceContext deviceContext) where T : ICustomEffect, new()
factory Factory1The factory to register the effect.
deviceContext DeviceContextThe device context.
Tvoid ID2D1Effect::SetInput([In] unsigned int index,[In, Optional] ID2D1Image* input,[In] BOOL invalidate)
public void SetInput(int index, Image input, bool invalidate = true)
index intinput Imageinvalidate boolHRESULT ID2D1Effect::SetInputCount([In] unsigned int inputCount)
public void SetInputCount(int inputCount)
inputCount intSets the input by using the output of a given effect.
public void SetInputEffect(int index, Effect effect, bool invalidate = true)
index intIndex of the input
effect EffectEffect output to use as input
invalidate boolTo invalidate
Performs an explicit conversion from System.IntPtr to Effect.
public static explicit operator Effect(IntPtr nativePointer)
nativePointer System.IntPtr