CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Directly show image

    hi everybody,

    I want to know how the image can directly show in the frame (I am using MFC) from camera. I have already designed the frame in the dialog. I declare that the frame is CStatic mVideoWindow. Could you help me and give me an example?

    regards,

  2. #2
    Join Date
    Apr 2004
    Posts
    2

    Re: Directly show image

    Hi ,


    HWND hWnd;

    hWnd=capCaptureWindow("Video",WS_CHILD | WS_CLIPCHILDREN | WS_VISIBLE,0,0,360,280,(HWND)this->m_hWnd,1); //create a window

    capDriverConnect(hWnd,0); // driver connection

    capPreviewRate(hWnd,66); //15fps = 1/66
    capPreview(hWnd,true); //show video

    its all

  3. #3
    Join Date
    Apr 2004
    Posts
    2
    hi, thanks for your help. I really feel graceful.

    From your reply, I have known that I can create a window. But, I don't want to create a window. I just want the image showed on the frame in dialog.

    You're so kind. And let me say: Thank you.

  4. #4
    Join Date
    May 2003
    Posts
    30

    image

    try following link that have vc++ sample
    http://www.viscomsoft.com/products/videocap/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured