from JascApp import *

def ScriptProperties():
    return {
        'Author': u'Jasc Software, Inc.',
        'Copyright': u'Copyright (c) 2003-2004 Jasc Software, Inc.  All rights reserved.',
        'Description': u'',
        'Host': u'Paint Shop Pro',
        'Host Version': u'8.10'
        }

def Preset_LensDistortion():
    return {
        'DistortionType': App.Constants.DistortionType.Fisheye, 
        'Strength': 25, 
        'FieldOfView': 100, 
        'HorizontalOffset': 0, 
        'VerticalOffset': 0, 
        'EdgeMode': App.Constants.EdgeMode.Wrap, 
        'BackgroundColor': (0,0,0)
        }

def Do(Environment):
    # Lens Distortion
    App.Do( Environment, 'LensDistortion',         Preset_LensDistortion())

