Table of Contents

Method CloneWithNewUserColors

Namespace
PaintDotNet.Effects
Assembly
PaintDotNet.Effects.Core.dll

CloneWithNewUserColors(IEffectEnvironment2, ManagedColor, ManagedColor)

Creates a copy of the environment for use with another effect instance, while replacing the primary and secondary colors. Other data is unaffected.

public static IEffectEnvironment2 CloneWithNewUserColors(this IEffectEnvironment2 environment, ManagedColor newPrimaryColor, ManagedColor newSecondaryColor)

Parameters

environment IEffectEnvironment2

The environment to clone from.

newPrimaryColor ManagedColor

The new value for the PrimaryColor property.

newSecondaryColor ManagedColor

The new value for the SecondaryColor property.

Returns

IEffectEnvironment2

The new environment.

Remarks