Available in the LEADTOOLS Imaging toolkit. |
ShowGIFWebTunerDlg Example for C++ 5.0 and later
void CDialogs::OnGIFWebTuner() { HRESULT hr; int nRet; ILEADRasterDlgKrn_U *m_pRasterDlgKrn = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgKrn_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgKrn_U, (LPVOID*)&m_pRasterDlgKrn); ILEADRasterDlgWeb_U *m_pRasterDlgWeb = NULL; hr = CoCreateInstance(CLSID_LEADRasterDlgWeb_U, NULL, CLSCTX_ALL, IID_ILEADRasterDlgWeb_U, (LPVOID*)&m_pRasterDlgWeb); nRet = m_pRasterDlgKrn->InitDlg(INIT_WITH_COLOR); m_pRasterDlgWeb->Bitmap = m_pLead1.GetBitmap(); m_pRasterDlgWeb->UIFlags = GIFWEBTUNER_SHOW_INFORMATION | GIFWEBTUNER_SHOW_PREVIEW | GIFWEBTUNER_SHOW_TOOL_ZOOMLEVEL | GIFWEBTUNER_SHOW_TOOL_COLORPICKER | GIFWEBTUNER_SHOW_TRANSPARENCY | GIFWEBTUNER_SHOW_OPTIONS | GIFWEBTUNER_SHOW_ADDWINDOWCOLOR; nRet = m_pRasterDlgWeb->ShowGIFWebTunerDlg((long)m_hWnd); if(nRet == 0 && m_pRasterDlgWeb->GetDialogStatus() == DLG_OK) { m_pLead1.Fill(m_pRasterDlgWeb->GetTransparentColor()); } }