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_HistogramAdjustment():
    return {
        'LuminanceChannel': {
            'Appearance': 0, 
            'Gamma': 1, 
            'HighClipLimit': 255, 
            'HighClipLimitPercentage': None, 
            'LowClipLimit': 0, 
            'LowClipLimitPercentage': None, 
            'MaxOutput': 255, 
            'MinOutput': 230
            }, 
        'RedChannel': {
            'Appearance': 0, 
            'Gamma': 1, 
            'HighClipLimit': 255, 
            'HighClipLimitPercentage': None, 
            'LowClipLimit': 0, 
            'LowClipLimitPercentage': None, 
            'MaxOutput': 255, 
            'MinOutput': 0
            }, 
        'GreenChannel': {
            'Appearance': 0, 
            'Gamma': 1, 
            'HighClipLimit': 255, 
            'HighClipLimitPercentage': None, 
            'LowClipLimit': 0, 
            'LowClipLimitPercentage': None, 
            'MaxOutput': 255, 
            'MinOutput': 0
            }, 
        'BlueChannel': {
            'Appearance': 0, 
            'Gamma': 1, 
            'HighClipLimit': 255, 
            'HighClipLimitPercentage': None, 
            'LowClipLimit': 0, 
            'LowClipLimitPercentage': None, 
            'MaxOutput': 255, 
            'MinOutput': 0
            }, 
        'TargetChannel': 0, 
        'OverlayResultHistogram': App.Constants.Boolean.true, 
        'HistogramEditMode': App.Constants.HistogramEditMode.Luminance
        }

def Do(Environment):
    # Histogram Adjustment
    App.Do( Environment, 'HistogramAdjustment',         Preset_HistogramAdjustment())

