Get color of text, odd results....
i'm trying color of chunk of text, can size, font, etc... struggling getting color.
when use code
interfaceptr<const iattrreport> fontcolorattrreport(icomposescanner->queryattributeat(charcounter,charcounter + 1,ktextattrcolorboss,null));
interfaceptr<const itextattruid> fontcolorattr(fontcolorattrreport, iid_itextattruid);
uid coloruid = fontcolorattr->get();
int32 colorspace;
colorarray colorarray;
pmreal tint;
utils<icolorsystemutils>()->getcolorswatchcolorspaceandvalue(uidref(::getdatabase(txtmodel ),coloruid), colorspace,colorarray,tint);
widestring colorinfostring = widestring(utils<icolorsystemutils>()->getcolorinfostring(colorspace,colorarray,ktrue));
colorarray values real numbers, error may displaying them integers ...
agh -- sorry! getcolorinfostring formats you.
(reminder self: not post in sdk forum )
More discussions in InDesign SDK
adobe
Comments
Post a Comment