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
IEffectEnvironment2The environment to clone from.
newPrimaryColor
ManagedColorThe new value for the PrimaryColor property.
newSecondaryColor
ManagedColorThe new value for the SecondaryColor property.
Returns
- IEffectEnvironment2
The new environment.