Method CloneWithNewSource
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
CloneWithNewSource(IEffectEnvironment2, IBitmapSource)
Creates a copy of the environment for use with another effect instance, while replacing the source layer's bitmap. Other data is unaffected, including the document's bitmap.
public static IEffectEnvironment2 CloneWithNewSource(this IEffectEnvironment2 environment, IBitmapSource newSourceBitmap)
Parameters
environmentIEffectEnvironment2The environment.
newSourceBitmapIBitmapSourceThe new bitmap to use as the source layer bitmap.
Returns
- IEffectEnvironment2
The new environment.