Skip to main content
JADarnell
Inspiring
January 28, 2010
Question

All versions of ID: detecting applied color to grayscale images

  • January 28, 2010
  • 1 reply
  • 401 views

I need to know how to detect images in a document that have had a color swatch applied to them, and then I need to determine what color was applied.  Can anyone point me in the right direction to how I might accomplish this?

Please assume that I have the PageItemUID for the given image ready to be examined.

TIA.

John

This topic has been closed for replies.

1 reply

Inspiring
January 28, 2010

Your color could be in any of these graphics attributes

kGraphicStyleFillRenderingAttrBoss

kGraphicStyleStrokeRenderingAttrBoss

kGraphicStyleGapRenderingAttrBoss

Probably there are also other attributes somewhere deep in XP effects ...

Dirk

JADarnell
JADarnellAuthor
Inspiring
January 29, 2010

Thanks Dirk. That helped a great deal.

R,

John