Available in LEADTOOLS Document and Medical Imaging toolkits.
AnnSetROP2 example for Visual C++ 4.0 and later
m_Lead1.AnnSetROP2 (hPlgn, (m_Lead1.AnnGetROP2 (hPlgn) + 1) % 3, FALSE);