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.
2
Answers
I don’t know about Interop.Photoshop.dll, but in JavaScript, the position (4th paramamater) is optional. It’s just an x,y position in an array: