Click here to Skip to main content
15,879,326 members
Articles / Desktop Programming / Windows Forms

C328R Serial Camera Example with xBee using C#

Rate me:
Please Sign up or sign in to vote.
3.00/5 (6 votes)
5 Apr 2009CPOL3 min read 60.9K   1.3K   22  
C328R Serial Camera Example with xBee using C#
namespace CR328R
{
    partial class Form1
    {
        /// <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.components = new System.ComponentModel.Container();
            this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
            this.btnShapshot = new System.Windows.Forms.Button();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.btnPicNow = new System.Windows.Forms.Button();
            this.lstLog = new System.Windows.Forms.ListBox();
            this.btnInitCamera = new System.Windows.Forms.Button();
            this.btnClearLog = new System.Windows.Forms.Button();
            this.btnReset = new System.Windows.Forms.Button();
            this.button1 = new System.Windows.Forms.Button();
            this.btnMovie = new System.Windows.Forms.Button();
            this.btnPreview = new System.Windows.Forms.Button();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.rdoRes4 = new System.Windows.Forms.RadioButton();
            this.rdoRes3 = new System.Windows.Forms.RadioButton();
            this.rdoRes2 = new System.Windows.Forms.RadioButton();
            this.rdoRes1 = new System.Windows.Forms.RadioButton();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // serialPort1
            // 
            this.serialPort1.BaudRate = 57600;
            this.serialPort1.PortName = "COM3";
            this.serialPort1.ReadTimeout = 0;
            this.serialPort1.WriteTimeout = 250;
            // 
            // btnShapshot
            // 
            this.btnShapshot.Location = new System.Drawing.Point(738, 406);
            this.btnShapshot.Name = "btnShapshot";
            this.btnShapshot.Size = new System.Drawing.Size(75, 23);
            this.btnShapshot.TabIndex = 0;
            this.btnShapshot.Text = "Snapshot";
            this.btnShapshot.UseVisualStyleBackColor = true;
            this.btnShapshot.Click += new System.EventHandler(this.btnShapshot_Click);
            // 
            // pictureBox1
            // 
            this.pictureBox1.Location = new System.Drawing.Point(12, 12);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(640, 480);
            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.pictureBox1.TabIndex = 1;
            this.pictureBox1.TabStop = false;
            // 
            // btnPicNow
            // 
            this.btnPicNow.Location = new System.Drawing.Point(738, 377);
            this.btnPicNow.Name = "btnPicNow";
            this.btnPicNow.Size = new System.Drawing.Size(75, 23);
            this.btnPicNow.TabIndex = 2;
            this.btnPicNow.Text = "Get Now";
            this.btnPicNow.UseVisualStyleBackColor = true;
            this.btnPicNow.Click += new System.EventHandler(this.btnPicNow_Click);
            // 
            // lstLog
            // 
            this.lstLog.FormattingEnabled = true;
            this.lstLog.Location = new System.Drawing.Point(658, 12);
            this.lstLog.Name = "lstLog";
            this.lstLog.Size = new System.Drawing.Size(446, 355);
            this.lstLog.TabIndex = 3;
            // 
            // btnInitCamera
            // 
            this.btnInitCamera.Location = new System.Drawing.Point(657, 377);
            this.btnInitCamera.Name = "btnInitCamera";
            this.btnInitCamera.Size = new System.Drawing.Size(75, 23);
            this.btnInitCamera.TabIndex = 4;
            this.btnInitCamera.Text = "Init Camera";
            this.btnInitCamera.UseVisualStyleBackColor = true;
            this.btnInitCamera.Click += new System.EventHandler(this.btnInitCamera_Click);
            // 
            // btnClearLog
            // 
            this.btnClearLog.Location = new System.Drawing.Point(819, 434);
            this.btnClearLog.Name = "btnClearLog";
            this.btnClearLog.Size = new System.Drawing.Size(75, 23);
            this.btnClearLog.TabIndex = 5;
            this.btnClearLog.Text = "Clear Log";
            this.btnClearLog.UseVisualStyleBackColor = true;
            this.btnClearLog.Click += new System.EventHandler(this.btnClearLog_Click);
            // 
            // btnReset
            // 
            this.btnReset.Location = new System.Drawing.Point(819, 377);
            this.btnReset.Name = "btnReset";
            this.btnReset.Size = new System.Drawing.Size(75, 23);
            this.btnReset.TabIndex = 6;
            this.btnReset.Text = "Reset";
            this.btnReset.UseVisualStyleBackColor = true;
            this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
            // 
            // button1
            // 
            this.button1.Location = new System.Drawing.Point(819, 405);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(75, 23);
            this.button1.TabIndex = 7;
            this.button1.Text = "Clear Buffer";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // btnMovie
            // 
            this.btnMovie.Location = new System.Drawing.Point(739, 463);
            this.btnMovie.Name = "btnMovie";
            this.btnMovie.Size = new System.Drawing.Size(75, 23);
            this.btnMovie.TabIndex = 8;
            this.btnMovie.Text = "Movie";
            this.btnMovie.UseVisualStyleBackColor = true;
            this.btnMovie.Click += new System.EventHandler(this.btnMovie_Click);
            // 
            // btnPreview
            // 
            this.btnPreview.Location = new System.Drawing.Point(738, 434);
            this.btnPreview.Name = "btnPreview";
            this.btnPreview.Size = new System.Drawing.Size(75, 23);
            this.btnPreview.TabIndex = 9;
            this.btnPreview.Text = "Preview";
            this.btnPreview.UseVisualStyleBackColor = true;
            this.btnPreview.Click += new System.EventHandler(this.btnPreview_Click);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.rdoRes4);
            this.groupBox1.Controls.Add(this.rdoRes3);
            this.groupBox1.Controls.Add(this.rdoRes2);
            this.groupBox1.Controls.Add(this.rdoRes1);
            this.groupBox1.Location = new System.Drawing.Point(973, 377);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(131, 115);
            this.groupBox1.TabIndex = 10;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "JPEG Resolution";
            // 
            // rdoRes4
            // 
            this.rdoRes4.AutoSize = true;
            this.rdoRes4.Location = new System.Drawing.Point(6, 90);
            this.rdoRes4.Name = "rdoRes4";
            this.rdoRes4.Size = new System.Drawing.Size(66, 17);
            this.rdoRes4.TabIndex = 3;
            this.rdoRes4.TabStop = true;
            this.rdoRes4.Text = "640x480";
            this.rdoRes4.UseVisualStyleBackColor = true;
            // 
            // rdoRes3
            // 
            this.rdoRes3.AutoSize = true;
            this.rdoRes3.Location = new System.Drawing.Point(6, 66);
            this.rdoRes3.Name = "rdoRes3";
            this.rdoRes3.Size = new System.Drawing.Size(66, 17);
            this.rdoRes3.TabIndex = 2;
            this.rdoRes3.TabStop = true;
            this.rdoRes3.Text = "320x240";
            this.rdoRes3.UseVisualStyleBackColor = true;
            // 
            // rdoRes2
            // 
            this.rdoRes2.AutoSize = true;
            this.rdoRes2.Checked = true;
            this.rdoRes2.Location = new System.Drawing.Point(6, 43);
            this.rdoRes2.Name = "rdoRes2";
            this.rdoRes2.Size = new System.Drawing.Size(66, 17);
            this.rdoRes2.TabIndex = 1;
            this.rdoRes2.TabStop = true;
            this.rdoRes2.Text = "160x128";
            this.rdoRes2.UseVisualStyleBackColor = true;
            // 
            // rdoRes1
            // 
            this.rdoRes1.AutoSize = true;
            this.rdoRes1.Location = new System.Drawing.Point(7, 20);
            this.rdoRes1.Name = "rdoRes1";
            this.rdoRes1.Size = new System.Drawing.Size(54, 17);
            this.rdoRes1.TabIndex = 0;
            this.rdoRes1.TabStop = true;
            this.rdoRes1.Text = "80x64";
            this.rdoRes1.UseVisualStyleBackColor = true;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1115, 529);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.btnPreview);
            this.Controls.Add(this.btnMovie);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.btnReset);
            this.Controls.Add(this.btnClearLog);
            this.Controls.Add(this.btnInitCamera);
            this.Controls.Add(this.lstLog);
            this.Controls.Add(this.btnPicNow);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.btnShapshot);
            this.Name = "Form1";
            this.Text = "CR328 Demo";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.IO.Ports.SerialPort serialPort1;
        private System.Windows.Forms.Button btnShapshot;
        private System.Windows.Forms.PictureBox pictureBox1;
        private System.Windows.Forms.Button btnPicNow;
        private System.Windows.Forms.ListBox lstLog;
        private System.Windows.Forms.Button btnInitCamera;
        private System.Windows.Forms.Button btnClearLog;
        private System.Windows.Forms.Button btnReset;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Button btnMovie;
        private System.Windows.Forms.Button btnPreview;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.RadioButton rdoRes4;
        private System.Windows.Forms.RadioButton rdoRes3;
        private System.Windows.Forms.RadioButton rdoRes2;
        private System.Windows.Forms.RadioButton rdoRes1;
    }
}

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)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions