
from JascApp import *

def ScriptProperties():
    return {
        'Author': u'Jasc Software, Inc.',
        'Copyright': u'Copyright (c) 2003-2004 Jasc Software, Inc.  All rights reserved.',
        'Description': 'Factory default preset for BlackAndWhite effect',
        'Host': 'Paint Shop Pro 8',
        'Host Version': '8.00',
        }

def Preset_BlackAndWhite():
    return {
        'BlackPoint': (0, 0, 0),
        'BlackDest': (0, 0, 0),
        'GreyPoint': (127, 127, 127),
        'WhitePoint': (255, 255, 255),
        'GreyDest': (127, 127, 127),
        'WhiteDest': (255, 255, 255),
        'GeneralSettings': {
            'AutoActionMode': 0,
            'ExecutionMode': 0
            },
        'UseGreyPoint': App.Constants.Boolean.true,
        'UseWhitePoint': App.Constants.Boolean.true,
        'UseBlackPoint': App.Constants.Boolean.true,
        'PreserveLightness': App.Constants.Boolean.false,
        'BalanceGrey': App.Constants.Boolean.false
        }

def Do(Environment):
    App.Do( Environment, 'BlackAndWhite', Preset_BlackAndWhite())
