Copy link to clipboard
Copied
In the IGraphicsPort interface, there is a virtual function:
virtual void setgradient(AGMGradient *agmGrad, const PMMatrix& grMatrix,
const PMReal &xOrig, const PMReal &yOrig,
const PMReal &len, const PMReal &ang,
const PMReal &hiliteLen, const PMReal &hiliteAng) = 0;
I couldn't find a precise definition of the first parameter, AGMGradient *agmGrad. I assume that this requires a pointer to some other object, but how should this object be created? What exactly needs to be passed in?
1 Correct answer
AGM is an old library exposed via wrappers ony, the actual AGM* structures remain opaque / forward declarations, similar to CT* structures. Related methods are in a private (no headers provided) gradient utils class.
Please file a feature request in developer prerelease to expose the header.
Copy link to clipboard
Copied
AGM is an old library exposed via wrappers ony, the actual AGM* structures remain opaque / forward declarations, similar to CT* structures. Related methods are in a private (no headers provided) gradient utils class.
Please file a feature request in developer prerelease to expose the header.
Copy link to clipboard
Copied
I should have checked the SDK first. Above was from 2018 when I last tried to examine such an object.
Gradients are a rendering object similar to color swatches, tint etc., applying such a rendering object should do.
I'd first try IGradientFillInstall though.
Copy link to clipboard
Copied
Could you share some sample code? Thanks.

