You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cameron White edited this page Jul 26, 2013
·
6 revisions
Most effects and adjustments allow the user to customize settings to achieve the desired effect.
This guide builds on the effect written in [Writing an Effect or Adjustment] (https://github.com/PintaProject/Pinta/wiki/Writing-an-Effect-or-Adjustment). In that sample, the effect provided a basic night vision effects. This guide will expand that effect to be configurable, so that the user can customize the brightness of the effect.
The Basics
In order to make the effect configurable, there are two properties that we must override:
publicoverrideboolIsConfigurable{get{returntrue;}}publicoverrideboolLaunchConfiguration(){// Return true if the user accepted the configuration.// Return false if the user cancelled.returntrue;}
In the LaunchConfiguration method, you can do whatever is necessary for configuring the effect, such as showing a dialog with options for the user to manipulate.