Method CloneWithNewSource
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
CloneWithNewSource(IEffectEnvironment, 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 IEffectEnvironment CloneWithNewSource(this IEffectEnvironment environment, IBitmapSource newSourceBitmap)
Parameters
environment
IEffectEnvironmentThe environment.
newSourceBitmap
IBitmapSourceThe new bitmap to use as the source layer bitmap.
Returns
- IEffectEnvironment
The new environment.