Available in the LEADTOOLS Imaging toolkit.
CenterImage example for C++ 4.0 and later
//toggle CenterImage m_LEAD1.SetCenterImage(!m_LEAD1.GetCenterImage());