Highlighted

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

Explorer ,
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.

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

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

TOPICS
FAQ, How to, Problem or error

Views

36

Likes

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

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

Explorer ,
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.

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

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

TOPICS
FAQ, How to, Problem or error

Views

37

Likes

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
Oct 23, 2020 0
Explorer ,
Oct 23, 2020

Copy link to clipboard

Copied

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

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

Likes

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
Reply
Loading...
Oct 23, 2020 0