コード例 #1
0
ファイル: Action.cs プロジェクト: solarbluseth/thecodingfrog
        /// <summary>
        /// Resizes the image.
        /// </summary>
        /// <param name="__width">Width</param>
        private void resizeImage(double __width)
        {
            Photoshop.ActionDescriptor __desc = new Photoshop.ActionDescriptor();

            __desc.PutUnitDouble(__appRef.CharIDToTypeID("Wdth"), __appRef.CharIDToTypeID("#Pxl"), __width);
            __desc.PutBoolean(__appRef.StringIDToTypeID("scaleStyles"), true);
            __desc.PutBoolean(__appRef.CharIDToTypeID("CnsP"), true);
            __desc.PutEnumerated(__appRef.CharIDToTypeID("Intr"), __appRef.CharIDToTypeID("Intp"), __appRef.CharIDToTypeID("Bcbc"));
            __appRef.ExecuteAction(__appRef.CharIDToTypeID("ImgS"), __desc, Photoshop.PsDialogModes.psDisplayNoDialogs);
        }