from PSPApp import *

def ScriptProperties():
    return {
        'Author': u'',
        'Copyright': u'',
        'Description': u'',
        'Host': u'PaintShop Pro',
        'Host Version': u'16.00'
        }

def Do(Environment):
    # EnableOptimizedScriptUndo
    App.Do( Environment, 'EnableOptimizedScriptUndo', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 1, 
            'Left': 1, 
            'Right': 1, 
            'Symmetric': True, 
            'Top': 1, 
            'Color': (96,67,53), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # SelectAll
    App.Do( Environment, 'SelectAll', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 20, 
            'Left': 20, 
            'Right': 20, 
            'Symmetric': True, 
            'Top': 20, 
            'Color': (176,162,113), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 2, 
            'Left': 2, 
            'Right': 2, 
            'Symmetric': True, 
            'Top': 2, 
            'Color': (96,67,53), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 5, 
            'Left': 5, 
            'Right': 5, 
            'Symmetric': True, 
            'Top': 5, 
            'Color': (176,162,113), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 2, 
            'Left': 2, 
            'Right': 2, 
            'Symmetric': True, 
            'Top': 2, 
            'Color': (96,67,53), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # AddBorders
    App.Do( Environment, 'AddBorders', {
            'Bottom': 20, 
            'Left': 20, 
            'Right': 20, 
            'Symmetric': False, 
            'Top': 20, 
            'Color': (176,162,113), 
            'DimUnits': App.Constants.UnitsOfMeasure.Pixels, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # Slagschaduw
    App.Do( Environment, 'DropShadow', {
            'Blur': 50, 
            'Color': (0,0,0), 
            'Horizontal': 0, 
            'NewLayer': False, 
            'Opacity': 65, 
            'Vertical': 0, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # SelectNone
    App.Do( Environment, 'SelectNone', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # Magic Wand
    App.Do( Environment, 'MagicWand', {
            'General': {
                'Mode': App.Constants.SelectionOperation.Add, 
                'Antialias': True, 
                'Feather': 0, 
                'SampleMerged': False
                }, 
            'MatchMode': App.Constants.MatchMode.Color, 
            'Contiguous': True, 
            'Point': (316.5,7.5), 
            'Tolerance': 20, 
            'AntialiasType': App.Constants.AntialiasType.Outside, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # Caleidoscoop
    App.Do( Environment, 'Kaleidoscope', {
            'Angle': 242, 
            'HorizontalOffset': 99, 
            'Scale': -32, 
            'VerticalOffset': 87, 
            'NumOrbits': 2, 
            'RadialSuction': 76, 
            'NumPetals': 11, 
            'EdgeMode': App.Constants.EdgeMode.Transparent, 
            'FillColor': (81,146,234), 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # Gaussiaanse vervaging
    App.Do( Environment, 'GaussianBlur', {
            'Radius': 10, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # Ruis toevoegen
    App.Do( Environment, 'AddNoise', {
            'NoiseAmount': 10, 
            'NoiseType': App.Constants.NoiseType.Uniform, 
            'Monochrome': True, 
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'RandomSeed': 3826489, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

    # SelectInvert
    App.Do( Environment, 'SelectInvert', {
            'GeneralSettings': {
                'ExecutionMode': App.Constants.ExecutionMode.Default, 
                'AutoActionMode': App.Constants.AutoActionMode.Match, 
                'Version': ((16,0,0),1)
                }
            })

