from JascApp import *

def ScriptProperties():
    return {
        'Author': '',
        'Copyright': '',
        'Description': '',
        'Host': 'Paint Shop Pro',
        'Host Version': '8.00'
        }

def Preset_UserDefinedFilter():
    return {
        'ApplyToRed': App.Constants.Boolean.false, 
        'Bias': 52, 
        'ApplyToGreen': App.Constants.Boolean.false, 
        'Divisor': 3, 
        'ApplyToGrey': App.Constants.Boolean.true, 
        'ApplyToBlue': App.Constants.Boolean.false, 
        'Kernel': ((-1,0,0,1,0,0,1),(1,0,0,0,0,0,1),(0,0,-1,-1,0,0,0),(0,0,1,-5,1,0,0),(0,0,0,0,1,0,1),(
            0,0,0,0,0,0,0),(-1,0,0,0,0,0,1))
        }

def Do(Environment):
    App.Do( Environment, 'UserDefinedFilter',         Preset_UserDefinedFilter())

