how to clear image,pls help...thx...
hi, do any1 know how to clear image from the window frame?? means i display my image in the rectangle...so when i click clear button, the image will be clear, so the rectangle/window will be empty. below is my window frame code:
cvvNamedWindow( "Original Image", 0);
HWND hWnd = (HWND)cvGetWindowHandle("Original Image");
HWND hParent = ::GetParent(hWnd);
::SetParent(hWnd,GetDlgItem(IDC_1)->m_hWnd);
::ShowWindow(hParent,SW_HIDE);
cvvNamedWindow( "Image Processing", 0);
HWND hWnd2 = (HWND)cvGetWindowHandle("Image Processing");
HWND hParent2 = ::GetParent(hWnd2);
::SetParent(hWnd2,GetDlgItem(IDC_2)->m_hWnd);
::ShowWindow(hParent2,SW_HIDE);
code above is for my image display on tat...my display image code is:
cvvShowImage("Image Processing", img);
coz i using OpenCV...now i wanna clear/empty my frame...how to do it?? thanks a lot....hear from u soon & afap....
best regards,
ck.
__________________
ck.
|