![]() |
Adobe Photoshop SDK |
|
Channel Ports Suite Callbacks (deprecated Standard Suite) The standard Channel Ports Suite has been deprecated, please use the Channel Ports Suite Callbacks See PIChannelPortsSuite.h. More...
Detailed DescriptionThe standard Channel Ports Suite has been deprecated, please use the Channel Ports Suite Callbacks See PIChannelPortsSuite.h. Channel Ports are access points for reading and writing data from Photoshop internal selection data structures. There are two types of ports: read ports and write ports. You can retrieve a read port corresponding to a write port, but you cannot retrieve a write port from a read port. The API does allow for write-only ports, although none exist as of this version of the suite. These structures are used to get at merged pixel information, such as iterating through the merged data of the current layer or entire document, to be able to return a selection or use for a preview proxy. The standard Channel Ports Suite is found as a pointer in the parameter blocks of the plug-in modules. You can access the routines within the Channel Ports Suite in the following manner: DLLExport MACPASCAL void PluginMain (const int16 selector, ExportRecordPtr exportParamBlock, intptr_t* data, int16* result) { ... // Get the Channel Ports Suite from the parameter block ChannelPortProcs *channelPortsSuite = exportParamBlock->channelPortProcs; // Call the readPixelsProc routine. channelPortsSuite->readPixelsProc(...); ... } Define Documentation
Current minimum version of
Current maximum version of
Current minimum version of
Current maximum version of
Current minimum version of
Current maximum version of
Current minimum version of the
Current maximum version of the
Current version of the Channel Ports Suite.
Unique identifier for the Channel Ports Suite. Version number for the Channel Ports Suite.
Current number of routines in the Channel Ports Suite. Typedef Documentation
Describes an area of memory as pixels. Provide a scaling through a rectangle in source space and a corresponding rectangle in destination space. Equal rectangles result in a direct, unscaled, mapping. Unequal rectangles can be used to up- or down-sample. sourceRect.top = 0; sourceRect.left = 0; sourceRect.bottom = 100; sourceRect.right = 100; and destinationRect is a 50-pixel square in destination space: destinationRect.top = 0; destinationRect.left = 0; destinationRect.bottom = 50; destinationRect.right = 50; the scaling indicates to down-sample the image by half.
Access to internal channels though abstract types.
Channel read port.
Channel write port.
The channel to write a selection to.
A channel to read from.
A layer to read. A layer is a collection of lists of read channels.
The document information, used by the Export, Filter, and Selection module parameter blocks. Describes the document as a collection of channels and layers. The host provides a read port for each channel, so the pixel data can be read by using ReadPixelsProc in the Channel Ports Suite Callbacks (deprecated Standard Suite).
Reads a rectangular area (tile) of pixels from a read port, and writes them to a destination buffer, based on a scaling and a description of the memory to write. First, the destination space rectangle, provided in
The set of routines available for teh Channel Ports Suite.
Writes a rectangular area (tile) of pixels to a given port based on a memory description. This callback does not support scaling. If the rectangle maps to any pixels beyond the bounds of the port, they will not be written.
Returns the read port corresponding to a write port.
|