• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Adobe Photoshop 2020 Scripting. ApplyRadialBlur - fourth parameter (object BlurCenter).

Explorer ,
Oct 23, 2020 Oct 23, 2020

Copy link to clipboard

Copied

I think for those who created Interop.Photoshop.dll there is a special place in hell.
Question. I'm trying to change the center of the RadialBlur effect in C#. But I have no idea what and how to transfer parameter there.
The definition of method says
void ApplyRadialBlur (int Amount, Photoshop.PsRadialBlurMethod BlurMethod, Photoshop.PsRadialBlurQuality BlurQuality, [object BlurCenter]).
That is, anything can be passed to the fourth parameter. Because the object keyword is the root of all types.

In the vbs help (https://www.adobe.com/devnet/photoshop/scripting.html,
https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-vbs-ref-2020.pdf) it says [, BlurCenter] type Number (Double) The parameter BlurCenter is the
position (unit value).

WHAT? TO ME? DO? WITH THIS? INFORMATION?

I spent several hours and so could not find a normal working description of com interface.

Views

221

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Oct 23, 2020 Oct 23, 2020

double x = 0.2;
double y = 0.2;
object[] BlurCenter = new object[2] { x, y };

.ApplyRadialBlur(50, PsRadialBlurMethod.psZoom, PsRadialBlurQuality.psRadialBlurBest, BlurCenter);

Votes

Translate

Translate
Adobe
Explorer ,
Oct 23, 2020 Oct 23, 2020

Copy link to clipboard

Copied

LATEST

double x = 0.2;
double y = 0.2;
object[] BlurCenter = new object[2] { x, y };

.ApplyRadialBlur(50, PsRadialBlurMethod.psZoom, PsRadialBlurQuality.psRadialBlurBest, BlurCenter);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines