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
environmentIEffectEnvironment2The environment to clone from.
newPrimaryColorManagedColorThe new value for the PrimaryColor property.
newSecondaryColorManagedColorThe new value for the SecondaryColor property.
Returns
- IEffectEnvironment2
The new environment.