Available in the LEADTOOLS Imaging toolkit. |
ShowBrightnessDlg Example for C++ 5.0 and later
void CDialogs::OnShowBrightnessDlg() HRESULT hr; int nRet; ILEADRasterDlgClr_U *m_pRasterColorDlg = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgClr_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgClr_U, (LPVOID*)&m_pRasterColorDlg); ILEADRasterDlgKrn_U *m_pRasterDlgKrn = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgKrn_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgKrn_U, (LPVOID*)&m_pRasterDlgKrn); nRet = m_pRasterDlgKrn->InitDlg(INIT_WITH_COLOR); m_pRasterColorDlg->UIFlags = BRIGHTNESS_SHOW_PREVIEW | BRIGHTNESS_SHOW_TOOL_ZOOMLEVEL; m_pRasterColorDlg->Bitmap = m_pLead1.GetBitmap(); nRet = m_pRasterColorDlg->ShowBrightnessDlg((long)m_hWnd); if (nRet == SUCCESS && m_pRasterColorDlg->DialogStatus == DLG_OK) { m_pLead1.Intensity(m_pRasterColorDlg->Change); } }