func init // checks installation Adobe Photoshop and adds references include("AdobePhotoshop") // adds using namespace sys.add_use('System.ComponentModel') // initialize a member if(not isdef('Name')) sys.add_var(this.name, 'ps.PsResampleMethod') blk_init.println(this.codename, ' = ', this.ResampleMethod(), ';') end // initialize parser sys._se_init('Parse', 'ResampleMethod', 'ps.PsResampleMethod') end func _se_make(value) return('(ps.PsResampleMethod)Enum.Parse(typeof(ps.PsResampleMethod), ' + d('Value') + ')') end func doMembers() blk.println('foreach (object item in TypeDescriptor.GetConverter(typeof(ps.PsResampleMethod)).GetStandardValues()) {').inc() event('onMembers', 'item') blk.dec().println('}') end func ResampleMethod() return('ps.PsResampleMethod.' + this.props('ResampleMethod').value) end