Click here to Skip to main content
12,405,895 members (40,562 online)
Click here to Skip to main content

Stats

167K views
7.7K downloads
135 bookmarked
Posted

Webcamera, Multithreading and VFW

, 15 Feb 2008 CPOL
An article on webcamera frame-grabbing in a multi-thread environment
namespace SevenZ.WebCam
{
   partial class FormMain
   {
      /// <summary>
      /// Required designer variable.
      /// </summary>
      private System.ComponentModel.IContainer components = null;

      /// <summary>
      /// Clean up any resources being used.
      /// </summary>
      /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
      protected override void Dispose(bool disposing)
      {
         if (disposing && (components != null))
         {
            components.Dispose();
         }
         base.Dispose(disposing);
      }

      #region Windows Form Designer generated code

      /// <summary>
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// </summary>
      private void InitializeComponent()
      {
         this.pictureBox = new System.Windows.Forms.PictureBox();
         this.btnStart = new System.Windows.Forms.Button();
         this.cmbDevices = new System.Windows.Forms.ComboBox();
         this.btnDeviceProperties = new System.Windows.Forms.Button();
         this.chkGrayScale = new System.Windows.Forms.CheckBox();
         ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
         this.SuspendLayout();
         // 
         // pictureBox
         // 
         this.pictureBox.Location = new System.Drawing.Point(0, 0);
         this.pictureBox.Name = "pictureBox";
         this.pictureBox.Size = new System.Drawing.Size(320, 200);
         this.pictureBox.TabIndex = 0;
         this.pictureBox.TabStop = false;
         // 
         // btnStart
         // 
         this.btnStart.Location = new System.Drawing.Point(0, 235);
         this.btnStart.Name = "btnStart";
         this.btnStart.Size = new System.Drawing.Size(75, 23);
         this.btnStart.TabIndex = 2;
         this.btnStart.Text = "Start";
         this.btnStart.UseVisualStyleBackColor = true;
         this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
         // 
         // cmbDevices
         // 
         this.cmbDevices.FormattingEnabled = true;
         this.cmbDevices.Location = new System.Drawing.Point(0, 205);
         this.cmbDevices.Name = "cmbDevices";
         this.cmbDevices.Size = new System.Drawing.Size(320, 21);
         this.cmbDevices.TabIndex = 3;
         // 
         // btnDeviceProperties
         // 
         this.btnDeviceProperties.Enabled = false;
         this.btnDeviceProperties.Location = new System.Drawing.Point(75, 235);
         this.btnDeviceProperties.Name = "btnDeviceProperties";
         this.btnDeviceProperties.Size = new System.Drawing.Size(75, 23);
         this.btnDeviceProperties.TabIndex = 4;
         this.btnDeviceProperties.Text = "Device";
         this.btnDeviceProperties.UseVisualStyleBackColor = true;
         this.btnDeviceProperties.Click += new System.EventHandler(this.btnDevice_Click);
         // 
         // chkGrayScale
         // 
         this.chkGrayScale.AutoSize = true;
         this.chkGrayScale.Location = new System.Drawing.Point(225, 237);
         this.chkGrayScale.Name = "chkGrayScale";
         this.chkGrayScale.Size = new System.Drawing.Size(95, 17);
         this.chkGrayScale.TabIndex = 5;
         this.chkGrayScale.Text = "Grayscale filter";
         this.chkGrayScale.UseVisualStyleBackColor = true;
         // 
         // FormMain
         // 
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.ClientSize = new System.Drawing.Size(321, 259);
         this.Controls.Add(this.chkGrayScale);
         this.Controls.Add(this.btnDeviceProperties);
         this.Controls.Add(this.cmbDevices);
         this.Controls.Add(this.btnStart);
         this.Controls.Add(this.pictureBox);
         this.Name = "FormMain";
         this.Text = "Form1";
         this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FormMain_FormClosed);
         ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
         this.ResumeLayout(false);
         this.PerformLayout();

      }

      #endregion

      private System.Windows.Forms.PictureBox pictureBox;
      private System.Windows.Forms.Button btnStart;
      private System.Windows.Forms.ComboBox cmbDevices;
      private System.Windows.Forms.Button btnDeviceProperties;
      private System.Windows.Forms.CheckBox chkGrayScale;
   }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Zaur Nasibov
Software Developer
Finland Finland
I'm a Master degree student, studying at the University of Joensuu, Finland.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 16 Feb 2008
Article Copyright 2007 by Zaur Nasibov
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid