#include <IPhotoshopClippingPath.h>
This interface is used to parse the '8BIM' resource generated by Photoshop and placed
in various image formats, into a PathOutlineInfo polygon.
- See Also
- PathOutlineInfo
| virtual int32 IPhotoshopClippingPath::Length | ( | | ) | const |
| pure virtual |
This method should be private. Clients have no need to call this method.
| virtual ErrorCode IPhotoshopClippingPath::Parse | ( | uint8 * | pPathData, | | | uint32 | dataLength, | | | PathOutlineInfo * | pPolygon, | | | const PMReal & | xScaleFactor, | | | const PMReal & | yScaleFactor, | | | const PMReal & | xOffset, | | | const PMReal & | yOffset | | ) | | |
| pure virtual |
This method does all the work.
- Parameters
| pPathData | - IN: Should be const. Pointer to the source data. |
| dataLength | - IN: Number of bytes in source data pointed at by pPathData |
| pPolygon | - OUT: The resulting polygon. |
| xScaleFactor | - IN: An x scale factor to apply to each point in the path. |
| yScaleFactor | - IN: A y scale factor to apply to each point in the path. |
| xOffset | - IN: A horizontal offset to apply to each point in the path after the scale is applied. |
| yOffset | - IN: A vertical offset to apply to each point in the path after the scale is applied. |