Search code examples
delphidirectdraw

Delphi + webcam


I am looking for a way to use my webcam in delphi, primary for grabbing a picture, by some reason I cannot use TWAIN drivers.


Solution

  • Try these resources

    DSPack

    DSPack is a set of Components and class to write Multimedia Applications using MS Direct Show and DirectX technologies. DSPack 2.3 is designed to work with DirectX 9 on Win9X, ME, 2000, and Windows XP operating systems using Delphi 5,6,7 and BCB6.

    or

    capCreateCaptureWindow function (sample code)

    The capCreateCaptureWindow function creates a capture window.

    Syntax C++

    HWND VFWAPI capCreateCaptureWindow(
      LPCTSTR lpszWindowName,
      DWORD dwStyle,
      int x,
      int y,
      int nWidth,
      int nHeight,
      HWND hWnd,
      int nID
    );