var opt=new BitmapConversionOptions(); opt.method=BitmapConversionType.CUSTOMPATTERN; opt.patternName="泡"; app.activeDocument.changeMode(ChangeMode.BITMAP, opt);