Skip to main content
Adobe Photoshop Family

2 Messages

 • 

120 Points

Tue, Feb 6, 2018 11:08 PM

Photoshop SDK: Trying to return a layer / canvas (bitmap / byte array) of pixels.

[Question for Engineering team]

I'm trying to access a layers pixel array to stream into my service using the Photoshop C++ SDK, and every example has the file saved to disk to read the bitmap, or some ActionScript 3 / .JS code. .

I am wondering if I can access the memory of the actual canvas layer of a photoshop document to create a bitmap of the image assigned to a layer to stream into my service; without saving to disk. 

I would prefer it not in the Action Descriptor but if that's all I can use, I would welcome it. 

Responses

2 Messages

 • 

120 Points

3 years ago

[I would still like to talk with a Engineer to see if this is the best way but I have a working fix]

So good news and bad news, the good news if you can access a documents `PixelMemoryDesc` but the only way seems to be in a filter plugin and that either needs to run as a stand alone plugin or needs to be called from a automation plugin, I don't know why you can't access the same suits from either of these plugins but I don't make the rules...

Both of these examples I have found are from filter\hidden and automation\automationfilter in the pluginSDK sample code. Automation passes a enum to a action descriptor "enumWrite" or "enumInfo" from a 'HiddenCommands' header.