Tuesday, March 30, 2010

Gradient fill not displayed correctly...

Hello,

I've created a rectangleframe and applied a gradient fill, and afterwards I have applied a rotation of -90 to the gradient fill. After the rotation the gradient does not display correctly anymore (after saving the document to .idml I've noticed that the property GradientFillLength was not recalculated after rotation). Is there a command to force the update or am I missing something? This problem occurs in InDesign CS3/CS4.

Thank you

UIDList targetList(m_SplineUIDRef);

InterfacePtr%26lt;ICommand%26gt; applyCmd(Utils%26lt;IGraphicAttributeUtils%26gt;()-%26gt;CreateFillRenderingCommand(

?gradientUid, %26amp;targetList, kTrue, kTrue));

CmdUtils::ProcessCommand(applyCmd);

InterfacePtr%26lt;ICommand%26gt; angleCmd(Utils%26lt;IGraphicAttributeUtils%26gt;()-%26gt;CreateGradientFillAngleCommand(

?gradientAngle, %26amp;targetList, kTrue, kTrue));

CmdUtils::ProcessCommand(angleCmd);

No comments:

Post a Comment