Table of Contents

Method CloneWithNewUserColors

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

CloneWithNewUserColors(IEffectEnvironment, ColorBgra32, ColorBgra32)

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 IEffectEnvironment CloneWithNewUserColors(this IEffectEnvironment environment, ColorBgra32 newPrimaryColor, ColorBgra32 newSecondaryColor)

Parameters

environment IEffectEnvironment

The environment to clone from.

newPrimaryColor ColorBgra32

The new value for the PrimaryColor property.

newSecondaryColor ColorBgra32

The new value for the SecondaryColor property.

Returns

IEffectEnvironment

The new environment.

Remarks