Table of Contents

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

environment IEffectEnvironment2

The environment.

newSourceBitmap IBitmapSource

The new bitmap to use as the source layer bitmap.

Returns

IEffectEnvironment2

The new environment.

Remarks