ShowInvertTextDlg Example for C++ 5.0 and later
void CDialogs::OnShowInvertTextDlg()
{
m_pRasterImgDocDlg->InvertedText->MinInvertWidth= 900;
m_pRasterImgDocDlg->InvertedText->MinInvertHeight= 56;
m_pRasterImgDocDlg->InvertedText->MinBlackPercent= 75;
m_pRasterImgDocDlg->InvertedText->MaxBlackPercent= 95;
m_pRasterImgDocDlg->InvertedText->PutFlags(INVERTEDTEXT_USE_DIAGONALS |INVERTEDTEXT_USE_DPI);
m_pRasterImgDocDlg->WhiteAreaColor = RGB ( 255, 0, 0 );
m_pRasterImgDocDlg->BlackAreaColor = RGB ( 0, 0, 255 );
m_pRasterImgDocDlg->UIFlags = INVERTEDTEXT_AUTOPROCESS |
INVERTEDTEXT_SHOW_PREVIEW |
INVERTEDTEXT_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImgDocDlg->PutBitmap (m_LeadRasterView.GetRaster ().GetBitmap ());
m_pRasterImgDocDlg->ShowInvertTextDlg((long)this->m_hWnd);
}