Available in LEADTOOLS Document and Medical Imaging toolkits.
LAnnotation::SetROP2
LAnnotation::GetROP2