PK |8%Go$ $ L WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/app.config
True
140
255
0
70
0
70
False
0
70
140
255
0
70
False
0
70
0
70
140
255
0
5
Black
White
False
60
50
2
False
False
True
50
False
PK ;8 F WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/bin/PK J8 L WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/bin/Debug/PK H8 N WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/bin/Release/PK ~-l5 5 P WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/ColorButton.csusing System;
using System.Windows.Forms;
using System.Drawing;
namespace FancyColorDialog
{
public class ColorButton : Button
{
Color centerColor;
public ColorButton()
{
MouseEnter += new EventHandler(OnMouseEnter);
MouseLeave += new EventHandler(OnMouseLeave);
MouseUp += new MouseEventHandler(OnMouseUp);
Paint += new PaintEventHandler(ButtonPaint);
}
public Color CenterColor
{
get{ return centerColor; }
set{ centerColor = value; }
}
void OnMouseEnter(object sender, EventArgs e)
{
Invalidate();
}
void OnMouseLeave(object sender, EventArgs e)
{
Invalidate();
}
void OnMouseUp(object sender, MouseEventArgs e)
{
Invalidate();
}
void ButtonPaint(Object sender, PaintEventArgs e)
{
Graphics g = e.Graphics ;
Rectangle r = ClientRectangle;
byte border = 4;
byte right_border = 15;
Rectangle rc = new Rectangle(r.Left + border, r.Top + border,
r.Width - border - right_border - 1, r.Height - border * 2 - 1);
SolidBrush centerColorBrush = new SolidBrush( centerColor );
g.FillRectangle(centerColorBrush, rc);
Pen pen = new Pen( Color.Black );
g.DrawRectangle( pen, rc );
//draw the arrow
Point p1 = new Point( r.Width - 9, r.Height / 2 - 1 );
Point p2 = new Point(r.Width - 5, r.Height / 2 - 1 );
g.DrawLine(pen, p1, p2);
p1 = new Point( r.Width - 8, r.Height / 2 );
p2 = new Point(r.Width - 6, r.Height / 2 );
g.DrawLine(pen, p1, p2);
p1 = new Point( r.Width - 7, r.Height / 2 );
p2 = new Point(r.Width - 7, r.Height / 2 + 1 );
g.DrawLine(pen, p1, p2);
//draw the divider line
pen = new Pen( SystemColors.ControlDark );
p1 = new Point( r.Width - 12, 4 );
p2 = new Point(r.Width - 12, r.Height - 5 );
g.DrawLine(pen, p1, p2);
pen = new Pen( SystemColors.ControlLightLight );
p1 = new Point( r.Width - 11, 4 );
p2 = new Point(r.Width - 11, r.Height - 5 );
g.DrawLine(pen, p1, p2);
}
}
}
PK 8=*$ P WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/ColorDialog.cs// created on 06.09.2002 at 09:16
using System;
using System.Windows.Forms;
using System.Drawing;
namespace FancyColorDialog
{
public class ColorPaletteDialog : Form
{
byte max = 40;
Panel[] panel = new Panel[40];
Color[] color = new Color[40]
{
//row 1
Color.FromArgb(0,0,0), Color.FromArgb(153,51,0), Color.FromArgb(51,51,0), Color.FromArgb(0,51,0),
Color.FromArgb(0,51,102), Color.FromArgb(0,0,128), Color.FromArgb(51,51,153), Color.FromArgb(51,51,51),
//row 2
Color.FromArgb(128,0,0), Color.FromArgb(255,102,0), Color.FromArgb(128,128,0), Color.FromArgb(0,128,0),
Color.FromArgb(0,128,128), Color.FromArgb(0,0,255), Color.FromArgb(102,102,153), Color.FromArgb(128,128,128),
//row 3
Color.FromArgb(255,0,0), Color.FromArgb(255,153,0), Color.FromArgb(153,204,0), Color.FromArgb(51,153,102),
Color.FromArgb(51,204,204), Color.FromArgb(51,102,255), Color.FromArgb(128,0,128), Color.FromArgb(153,153,153),
//row 4
Color.FromArgb(255,0,255), Color.FromArgb(255,204,0), Color.FromArgb(255,255,0), Color.FromArgb(0,255,0),
Color.FromArgb(0,255,255), Color.FromArgb(0,204,255), Color.FromArgb(153,51,102), Color.FromArgb(192,192,192),
//row 5
Color.FromArgb(255,153,204), Color.FromArgb(255,204,153), Color.FromArgb(255,255,153), Color.FromArgb(204,255,204),
Color.FromArgb(204,255,255), Color.FromArgb(153,204,255), Color.FromArgb(204,153,255), Color.FromArgb(255,255,255)
};
string[] colorName = new string[40]
{
"Black", "Brown", "Olive Green", "Dark Green", "Dark Teal", "Dark Blue", "Indigo", "Gray-80%",
"Dark Red", "Orange", "Dark Yellow", "Green", "Teal", "Blue", "Blue-Gray", "Gray-50%",
"Red", "Light Orange", "Lime", "Sea Green", "Aqua", "Light Blue", "Violet", "Gray-40%",
"Pink", "Gold", "Yellow", "Bright Green", "Turquoise", "Sky Blue", "Plum", "Gray-25%",
"Rose", "Tan", "Light Yellow", "Light Green", "Light Turquoise", "Pale Blue", "Lavender", "White"
};
Button moreColorsButton = new Button();
Button cancelButton = new Button();
Color selectedColor;
public ColorPaletteDialog(int x, int y)
{
Size = new Size(158, 155);
FormBorderStyle = FormBorderStyle.FixedDialog;
MinimizeBox = MaximizeBox = ControlBox = false;
ShowInTaskbar = false;
CenterToScreen();
Location = new Point(x, y);
BuildPalette();
moreColorsButton.Text = "More colors ...";
moreColorsButton.Size = new Size(142, 22);
moreColorsButton.Location = new Point(5, 99);
moreColorsButton.Click += new EventHandler(moreColorsButton_Click);
moreColorsButton.FlatStyle = FlatStyle.Popup;
Controls.Add(moreColorsButton);
//"invisible" button to cancel at Escape
cancelButton.Text = "Close";
cancelButton.Size = new Size(142, 22);
cancelButton.Location = new Point(5, 125);
cancelButton.Click += new EventHandler(cancelButton_Click);
cancelButton.FlatStyle = FlatStyle.Standard;
Controls.Add(cancelButton);
cancelButton.TabIndex = 0;
cancelButton.DialogResult = DialogResult.Cancel;
this.CancelButton = cancelButton;
}
public Color Color
{
get {return selectedColor;}
}
void BuildPalette()
{
byte pwidth = 16;
byte pheight = 16;
byte pdistance = 2;
byte border = 5;
int x = border, y = border;
ToolTip toolTip = new ToolTip();
for(int i = 0; i < max; i++)
{
panel[i] = new Panel();
panel[i].Height = pwidth;
panel[i].Width = pheight;
panel[i].Location = new Point(x, y);
toolTip.SetToolTip(panel[i], colorName[i]);
this.Controls.Add(panel[i]);
if(x < ( 7 * (pwidth + pdistance)))
x += pwidth + pdistance;
else
{
x = border;
y += pheight + pdistance;
}
panel[i].BackColor = color[i];
panel[i].MouseEnter += new EventHandler(OnMouseEnterPanel);
panel[i].MouseLeave += new EventHandler(OnMouseLeavePanel);
panel[i].MouseDown += new MouseEventHandler(OnMouseDownPanel);
panel[i].MouseUp += new MouseEventHandler(OnMouseUpPanel);
panel[i].Paint += new PaintEventHandler(OnPanelPaint);
}
}
void moreColorsButton_Click(object sender, System.EventArgs e)
{
ColorDialog colDialog = new ColorDialog();
colDialog.FullOpen = true;
if(colDialog.ShowDialog() == DialogResult.OK)
{
selectedColor = colDialog.Color;
DialogResult = DialogResult.OK;
}
colDialog.Dispose();
Close();
}
void cancelButton_Click(object sender, System.EventArgs e)
{
Close();
}
void OnMouseEnterPanel(object sender, EventArgs e)
{
DrawPanel(sender, 1);
}
void OnMouseLeavePanel(object sender, EventArgs e)
{
DrawPanel(sender, 0);
}
void OnMouseDownPanel(object sender, MouseEventArgs e)
{
DrawPanel(sender, 2);
}
void OnMouseUpPanel(object sender, MouseEventArgs e)
{
Panel panel = (Panel)sender;
selectedColor = panel.BackColor;
DialogResult = DialogResult.OK;
Close();
}
void DrawPanel(object sender, byte state)
{
Panel panel = (Panel)sender;
Graphics g = panel.CreateGraphics();
Pen pen1, pen2;
if(state == 1) //mouse over
{
pen1 = new Pen( SystemColors.ControlLightLight );
pen2 = new Pen( SystemColors. ControlDarkDark);
}
else if(state == 2) //clicked
{
pen1 = new Pen( SystemColors.ControlDarkDark );
pen2 = new Pen( SystemColors.ControlLightLight );
}
else //neutral
{
pen1 = new Pen( SystemColors.ControlDark );
pen2 = new Pen( SystemColors.ControlDark );
}
Rectangle r = panel.ClientRectangle;
Point p1 = new Point( r.Left, r.Top ); //top left
Point p2 = new Point( r.Right -1, r.Top ); //top right
Point p3 = new Point( r.Left, r.Bottom -1 ); //bottom left
Point p4 = new Point( r.Right -1, r.Bottom -1 ); //bottom right
g.DrawLine( pen1, p1, p2 );
g.DrawLine( pen1, p1, p3 );
g.DrawLine( pen2, p2, p4 );
g.DrawLine( pen2, p3, p4 );
}
void OnPanelPaint(Object sender, PaintEventArgs e)
{
DrawPanel(sender, 0);
}
}
}
PK ,A S WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/DeviceSelector.csusing System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using DShowNET;
using DShowNET.Device;
namespace SampleGrabberNET
{
/// Dialog to let user select a capture device if more then one installed.
public class DeviceSelector : System.Windows.Forms.Form
{
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.ListView deviceListVw;
private System.Windows.Forms.ColumnHeader nameColHd;
/// Required designer variable.
private System.ComponentModel.Container components = null;
public DeviceSelector( ArrayList devs )
{
// Required for Windows Form Designer support
InitializeComponent();
ListViewItem item = null;
foreach( DsDevice d in devs )
{
item = new ListViewItem( d.Name );
item.Tag = d;
deviceListVw.Items.Add( item );
}
}
/// Clean up any resources being used.
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.deviceListVw = new System.Windows.Forms.ListView();
this.okButton = new System.Windows.Forms.Button();
this.cancelButton = new System.Windows.Forms.Button();
this.nameColHd = new System.Windows.Forms.ColumnHeader();
this.SuspendLayout();
//
// deviceListVw
//
this.deviceListVw.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.nameColHd});
this.deviceListVw.FullRowSelect = true;
this.deviceListVw.GridLines = true;
this.deviceListVw.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.deviceListVw.HideSelection = false;
this.deviceListVw.Location = new System.Drawing.Point(8, 8);
this.deviceListVw.MultiSelect = false;
this.deviceListVw.Name = "deviceListVw";
this.deviceListVw.Size = new System.Drawing.Size(344, 112);
this.deviceListVw.TabIndex = 0;
this.deviceListVw.View = System.Windows.Forms.View.Details;
this.deviceListVw.DoubleClick += new System.EventHandler(this.deviceListVw_DoubleClick);
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(108, 130);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(64, 24);
this.okButton.TabIndex = 1;
this.okButton.Text = "OK";
this.okButton.Click += new System.EventHandler(this.okButton_Click);
//
// cancelButton
//
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(188, 130);
this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(64, 24);
this.cancelButton.TabIndex = 1;
this.cancelButton.Text = "Cancel";
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
//
// nameColHd
//
this.nameColHd.Text = "Name";
this.nameColHd.Width = 400;
//
// DeviceSelector
//
this.AcceptButton = this.okButton;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.CancelButton = this.cancelButton;
this.ClientSize = new System.Drawing.Size(360, 159);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.okButton,
this.deviceListVw,
this.cancelButton});
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DeviceSelector";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Select video capture device";
this.ResumeLayout(false);
}
#endregion
private void deviceListVw_DoubleClick(object sender, System.EventArgs e)
{
this.okButton_Click( sender, e );
}
private void okButton_Click(object sender, System.EventArgs e)
{
if( deviceListVw.SelectedItems.Count != 1 )
return;
ListViewItem selitem = deviceListVw.SelectedItems[0];
SelectedDevice = selitem.Tag as DsDevice;
Close();
}
private void cancelButton_Click(object sender, System.EventArgs e)
{
Close();
}
public DsDevice SelectedDevice;
}
}
PK ,gА U WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/DeviceSelector.resx
text/microsoft-resx
1.3
System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
DeviceSelector
PK ,@ Z WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/DShowNET/AssemblyInfo.csusing System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("DShowNET")]
[assembly: AssemblyDescription("DirectShow for .NET")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("netmaster@swissonline.ch")]
[assembly: AssemblyProduct("DirectShow.NET")]
[assembly: AssemblyCopyright("everybody")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.1")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
PK !8@ a WebCam Signature 1.3 Source Code/WebCam Signature 1.3 Source Code/DShowNET/bin/Debug/DShowNET.dllMZ @ !L!This program cannot be run in DOS mode.
$ PE L ]H ! @ S ؽ H .text `.rsrc @ @.reloc @ B H / 0 o b3 Ȑ C s
] ; s
*(
* 0 ]b ` ; s
6 OR S ps
ᶇ ' 7a s
? ` 7s
R r O s
*(
* 0 vids 8 qs
iavs 8 qs
auds 8 qs
txts 8 qs
6 OR S ps
*(
* 0 4 YUYV 8 qs
IYUV 8 qs
DVSD 8 qs
x6 OR S ps
y6 OR S ps
z6 OR S ps
{6 OR S ps
|6 OR S ps
}6 OR S ps
~6 OR S ps
6 OR S ps
= uK s
*(
*0 G d ? "1 s
X V UYZs
v*
s
X V UYZs
X V UYZs
X V UYZs
X V UYZs
*(
* 0 g Bl S _ s
Bl S _ s
! *(
*(
* 0 Q
~ (
-r ps
z(
t
o
-r3 ps
z o!
-+-+Us ( }( P-s"
Q}) Po#
&X +
ݭ &