I would like to create an Automation plug-in to communicate to a Filter plug-in to get information (includes: start address, data size, height, weight...) of picture which is displaying on Photoshop window. But right now, I don't know the way to do this.
Does Photoshop SDK support to do this? Please help me.
Thanks,
Hieu Nguyen.
Communication between Automation and...
Yes, see the automationfilter and hidden examples.%26lt;br /%26gt;%26lt;br /%26gt;%26lt;br /%26gt;%26lt;Hieu_Nguyen@adobeforums.com%26gt; wrote in message %26lt;br /%26gt;news:3bc45199.-1@webcrossing.la2eafNXanI...%26lt;br /%26gt;%26gt;I would like to create an Automation plug-in to communicate to a Filter %26lt;br /%26gt;%26gt;plug-in to get information (includes: start address, data size, height, %26lt;br /%26gt;%26gt;weight...) of picture which is displaying on Photoshop window. But right %26lt;br /%26gt;%26gt;now, I don't know the way to do this.%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Does Photoshop SDK support to do this? Please help me.%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Thanks,%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Hieu Nguyen.Communication between Automation and...
Dear Tom Ruark,
In AutomationFilter project, I see API that get pixelData like this:
error = sPSActionDescriptor-%26gt;PutInteger(descriptor,
keyPointer, (int32)pixelData);
Is this the API to get the starting address of image in memory?
Thanks,
Hieu Nguyen.
Now, we still don't know whatever parameter is used to get start address of picture in the automationfilter and hidden examples. Can you help us?
Thanks
PhatLS
There are two versions of the automationfilter + hidden example.%26lt;br /%26gt;%26lt;br /%26gt;The first one, I think version 6 or 7 of the SDK. Had the following %26lt;br /%26gt;workflow.%26lt;br /%26gt;%26lt;br /%26gt;1. AutomationFilter allocated memory for the pixel data%26lt;br /%26gt;2. AutomationFilter did the PutInteger as you describe below and called the %26lt;br /%26gt;Hidden filter%26lt;br /%26gt;3. The HiddenFilter got the pixel data and copied the information into the %26lt;br /%26gt;pointer and exited%26lt;br /%26gt;4. The AutomationFilter changed the pixel data and then called the Hidden %26lt;br /%26gt;filter again%26lt;br /%26gt;5. The HiddenFilter wrote the pixel data via the filter callbacks.%26lt;br /%26gt;%26lt;br /%26gt;This is VERY inefficient and breaks down quickly on large documents.%26lt;br /%26gt;%26lt;br /%26gt;The next generation of the AutomationFilter and Hidden example is what is %26lt;br /%26gt;currently in the SDK.%26lt;br /%26gt;%26lt;br /%26gt;1. AutomationFilter determines which commands to send to the Hidden filter%26lt;br /%26gt;2. The Hidden filter executes the filter operation in entirety.%26lt;br /%26gt;%26lt;br /%26gt;In this mode there is no passing of pixel data back to the automation %26lt;br /%26gt;filter. All pixel munging is handled in the hidden filter and all the %26lt;br /%26gt;automationfilter does is send the correct command to the hidden filter.%26lt;br /%26gt;%26lt;br /%26gt;%26lt;Hieu_Nguyen@adobeforums.com%26gt; wrote in message %26lt;br /%26gt;news:3bc45199.1@webcrossing.la2eafNXanI...%26lt;br /%26gt;%26gt; Dear Tom Ruark,%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; In AutomationFilter project, I see API that get pixelData like this:%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; error = sPSActionDescriptor-%26gt;PutInteger(descriptor,%26lt;br /%26gt;%26gt; keyPointer, (int32)pixelData);%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Is this the API to get the starting address of image in memory?%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Thanks,%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Hieu Nguyen.
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment