Available in LEADTOOLS Document and Medical Imaging toolkits.
AnnSetROP2 example for Visual Basic
LEAD1.AnnSetROP2 hPlgn, (LEAD1.AnnGetROP2 (hPlgn) + 1) Mod 3, False