124 lines
4.5 KiB
C#
124 lines
4.5 KiB
C#
using LibVLCSharp.Forms.Shared;
|
|
|
|
namespace robospot_camera_finder
|
|
{
|
|
partial class StreamViewer
|
|
{
|
|
/// <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()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
videoView = new LibVLCSharp.WinForms.VideoView();
|
|
tbZoom = new TrackBar();
|
|
lblMinZoom = new Label();
|
|
lblMaxZoom = new Label();
|
|
timerUpdateZoom = new System.Windows.Forms.Timer(components);
|
|
((System.ComponentModel.ISupportInitialize)videoView).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)tbZoom).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// videoView
|
|
//
|
|
videoView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
videoView.BackColor = Color.Black;
|
|
videoView.Location = new Point(12, 12);
|
|
videoView.MediaPlayer = null;
|
|
videoView.Name = "videoView";
|
|
videoView.Size = new Size(870, 495);
|
|
videoView.TabIndex = 0;
|
|
videoView.Text = "videoView";
|
|
//
|
|
// tbZoom
|
|
//
|
|
tbZoom.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
tbZoom.LargeChange = 20;
|
|
tbZoom.Location = new Point(889, 30);
|
|
tbZoom.Maximum = 9999;
|
|
tbZoom.Name = "tbZoom";
|
|
tbZoom.Orientation = Orientation.Vertical;
|
|
tbZoom.Size = new Size(45, 459);
|
|
tbZoom.SmallChange = 10;
|
|
tbZoom.TabIndex = 1;
|
|
tbZoom.TickFrequency = 300;
|
|
tbZoom.TickStyle = TickStyle.TopLeft;
|
|
tbZoom.Value = 10;
|
|
tbZoom.KeyUp += tbZoom_KeyUp;
|
|
tbZoom.MouseUp += tbZoom_MouseUp;
|
|
//
|
|
// lblMinZoom
|
|
//
|
|
lblMinZoom.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
lblMinZoom.AutoSize = true;
|
|
lblMinZoom.Location = new Point(902, 492);
|
|
lblMinZoom.Name = "lblMinZoom";
|
|
lblMinZoom.Size = new Size(19, 15);
|
|
lblMinZoom.TabIndex = 2;
|
|
lblMinZoom.Text = "1x";
|
|
//
|
|
// lblMaxZoom
|
|
//
|
|
lblMaxZoom.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
lblMaxZoom.AutoSize = true;
|
|
lblMaxZoom.Location = new Point(902, 12);
|
|
lblMaxZoom.Name = "lblMaxZoom";
|
|
lblMaxZoom.Size = new Size(25, 15);
|
|
lblMaxZoom.TabIndex = 3;
|
|
lblMaxZoom.Text = "32x";
|
|
//
|
|
// timerUpdateZoom
|
|
//
|
|
timerUpdateZoom.Enabled = true;
|
|
timerUpdateZoom.Interval = 10000;
|
|
timerUpdateZoom.Tick += timerUpdateZoom_Tick;
|
|
//
|
|
// StreamViewer
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(933, 519);
|
|
Controls.Add(lblMaxZoom);
|
|
Controls.Add(lblMinZoom);
|
|
Controls.Add(tbZoom);
|
|
Controls.Add(videoView);
|
|
Margin = new Padding(4, 3, 4, 3);
|
|
Name = "StreamViewer";
|
|
Text = "LibVLCSharp.WinForms";
|
|
FormClosed += StreamViewer_FormClosed;
|
|
((System.ComponentModel.ISupportInitialize)videoView).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)tbZoom).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private LibVLCSharp.WinForms.VideoView videoView;
|
|
private TrackBar tbZoom;
|
|
private Label lblMinZoom;
|
|
private Label lblMaxZoom;
|
|
private System.Windows.Forms.Timer timerUpdateZoom;
|
|
}
|
|
} |