var opt=new BitmapConversionOptions(); opt.method=BitmapConversionType.HALFTONESCREEN; opt.frequency=77; opt.shape=BitmapHalfToneType.LINE; app.activeDocument.changeMode(ChangeMode.BITMAP, opt);