#include <IGradientFillInstall.h>
|
| enum | { kDefaultIID = IID_IGRADIENTFILLINSTALL } |
| |
|
| virtual void | InstallGradient (IGraphicsPort *port, const PMRect &r, PMReal angle, K2Vector< PMReal > *gradBound, K2Vector< PMReal > *gradMidPoint, GradientType gradType)=0 |
| |
| virtual void | InstallGradient (IGraphicsPort *port, PMReal length, PMPoint innerCenter, PMPoint outerCenter, PMReal radius, PMReal angle, PMReal hiliteLen, PMReal hiliteAngle, K2Vector< PMReal > *gradBound, K2Vector< PMReal > *gradMidPoint, GradientType gradType, PMMatrix gradMatrix)=0 |
| |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| |
| virtual void | AddRef () const =0 |
| |
| virtual void | Release () const =0 |
| |
This interface helps to install a gradient rendering object in the graphic port. To use, you have to set up all the attribute of the gradient first. This is done by using the IGRADIENTFILL interface. Gradient rendering objects are defined in GradientFillID.h.
- See Also
- GradientFillID.h
- IRenderingObject
- IGradientFill
This method is typcially used to install a gradient for proxy and swatch icons.
- Parameters
| port | the graphic port in which to install the gradient object. |
| r | the rectangular arear where the gradient will be installed. |
| angle | the gradient angle. |
| gradBound | the list of gradient stop positions. |
| gradMidPoint | the list of gradinet mid points. |
| gradType | the gradient type to install. |
| virtual void IGradientFillInstall::InstallGradient | ( | IGraphicsPort * | port, | | | PMReal | length, | | | PMPoint | innerCenter, | | | PMPoint | outerCenter, | | | PMReal | radius, | | | PMReal | angle, | | | PMReal | hiliteLen, | | | PMReal | hiliteAngle, | | | K2Vector< PMReal > * | gradBound, | | | K2Vector< PMReal > * | gradMidPoint, | | | GradientType | gradType, | | | PMMatrix | gradMatrix | | ) | | |
| pure virtual |
This method is typcially used to install either a gradient fill or a gradient stroke of an InDesign document objects such as page items, text, or table objects. All relevant graphic attributes are taken into account when the gradient is installed.
- Parameters
| port | the graphic port in which to install the gradient object. |
| length | the gradient length. |
| radius | the gradient radius. |
| angle | the gradient angle. |
| hiliteLen | the gradient highlight length. |
| hiliteAngle | the gradient highlight angle. |
| gradBound | the list of gradient stop positions. |
| gradMidPoint | the list of gradinet mid points. |
| gradType | the gradient type to install. |
| gradMatrix | the transformation matrix for the gradient. |