Table of Contents

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 IEffectEnvironment

The environment.

newSourceBitmap IBitmapSource

The new bitmap to use as the source layer bitmap.

Returns

IEffectEnvironment

The new environment.

Remarks