InDesign CS4自動化作戦 (InDesign CS4 Automation Operation)

画像の境界をぼかす

■プログラム説明(ソースコード説明)
 画像の境界をぼかすにはfeatherModeにFeatherMode.standardを設定します。ぼかす方法はfeatherCornerTypeで指定します。ぼかし幅はfeatherWidthで設定します。

■ソースコード
imgObj = app.activeDocument.selection[0];
imgObj.featherCornerType = FeatherCornerType.rounded;
imgObj.featherMode = FeatherMode.standard;
imgObj.featherWidth = 20;


■使い方
1:回転させる画像を選択します。
2:スクリプトを実行します。
3:画像の境界がぼかされます。


■ポイント
 featherCornerTypeで指定できる値は以下のようになります。

FeatherCornerType.sharp
FeatherCornerType.rounded
FeatherCornerType.diffusion

■実際のスクリプトをダウンロード(sample.jsx.zip)

写真素材 PIXTA