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