var
opt=
new
BitmapConversionOptions();
opt.resolution=7;
app.activeDocument.changeMode(ChangeMode.BITMAP, opt);