home *** CD-ROM | disk | FTP | other *** search
/ PC Extra 07 & 08 / pca1507.iso / Software / psp8 / Data1.cab / GreyscaleInPlace.PspScript < prev    next >
Encoding:
Text File  |  2003-04-22  |  1.1 KB  |  27 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Joe Fromm',
  6.         'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved. Permission to create derivate works of this script is granted provided this copyright notice is included',
  7.         'Description': 'Convert the current layer or selection to greyscale.  Only supports BGR and BGRA data.',
  8.         'Host': 'Paint Shop Pro 8',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.     App.Do(Environment,  'UserDefinedFilter', {
  14.             'ApplyToRed': App.Constants.Boolean.false, 
  15.             'Bias': 0, 
  16.             'ApplyToGreen': App.Constants.Boolean.false, 
  17.             'Divisor': 1, 
  18.             'ApplyToGrey': App.Constants.Boolean.true, 
  19.             'ApplyToBlue': App.Constants.Boolean.false, 
  20.             'Kernel': ((0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,0,1
  21.                 ,0,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0)), 
  22.             'GeneralSettings': {
  23.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  24.                 }
  25.             })
  26.  
  27.