func init // checks installation Adobe Photoshop and adds references include("AdobePhotoshop") // initialize instance sys.add_object(this.codename, 'ps.BMPSaveOptions') // initialize properties blk_init.println(this.codename, '.AlphaChannels = ', sys.get_typed_field('false', 'AlphaChannels', 104), ';') blk_init.println(this.codename, '.Depth = ', sys.get_typed_field('ps.PsBMPDepthType.psBMP24Bits', 'Depth', 14, 'ps.PsBMPDepthType'), ';') sys.set_typed_field(104, 'FlipRowOrder') sys.set_typed_field(14, 'OSType', '', 'ps.PsOperatingSystem') if(isdef("OSType")) blk_init.println(this.codename, '.RLECompression = ', sys.get_typed_field('false', 'RLECompression', 104), ';') end // make methods for properties sys._prop_init('AlphaChannels', 0, 1, 104) sys._prop_init('Depth', 0, 1, 0) sys._prop_init('FlipRowOrder', 0, 1, 104) sys._prop_init('OSType', 0, 1, 0) sys._prop_init('RLECompression', 0, 1, 104) end func SaveOptions return(this.codename) end