History Viewer: Added scaling options

This commit is contained in:
Sour 2019-02-03 20:25:12 -05:00
parent fb616cd612
commit ac5c935012
11 changed files with 235 additions and 18 deletions

View file

@ -43,6 +43,8 @@
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
<Control ID="mnuFullscreen">Pantalla completa</Control>
<Control ID="mnuVideoFilter">Filtre de vídeo</Control>
<Control ID="mnuNoneFilter">Cap</Control>
@ -610,6 +612,15 @@
<Control ID="mnuCreateSaveState">Create Save State</Control>
<Control ID="mnuResumeGameplay">Resume Gameplay</Control>
<Control ID="mnuClose">Close</Control>
<Control ID="mnuOptions">Opcions</Control>
<Control ID="mnuVideoScale">Mida de vídeo</Control>
<Control ID="mnuScale1x">1x</Control>
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Export specific range...">
<Control ID="lblStartTime">Start time:</Control>

View file

@ -43,6 +43,8 @@
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
<Control ID="mnuFullscreen">Fullscreen</Control>
<Control ID="mnuVideoFilter">Video Filter</Control>
<Control ID="mnuNoneFilter">None</Control>
@ -620,6 +622,15 @@
<Control ID="mnuCreateSaveState">Create Save State</Control>
<Control ID="mnuResumeGameplay">Resume Gameplay</Control>
<Control ID="mnuClose">Close</Control>
<Control ID="mnuOptions">Options</Control>
<Control ID="mnuVideoScale">Video Size</Control>
<Control ID="mnuScale1x">1x</Control>
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Export specific range...">
<Control ID="lblStartTime">Start time:</Control>

View file

@ -43,6 +43,8 @@
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
<Control ID="mnuFullscreen">Pantalla completa</Control>
<Control ID="mnuVideoFilter">Filtro de video</Control>
<Control ID="mnuNoneFilter">Ninguno</Control>
@ -608,6 +610,15 @@
<Control ID="mnuCreateSaveState">Create Save State</Control>
<Control ID="mnuResumeGameplay">Continuar el juego</Control>
<Control ID="mnuClose">Cerrar</Control>
<Control ID="mnuOptions">Opciones</Control>
<Control ID="mnuVideoScale">Tamaño de video</Control>
<Control ID="mnuScale1x">1x</Control>
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Export specific range...">
<Control ID="lblStartTime">Start time:</Control>

View file

@ -43,6 +43,8 @@
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
<Control ID="mnuFullscreen">Plein écran</Control>
<Control ID="mnuVideoFilter">Filtre vidéo</Control>
<Control ID="mnuNoneFilter">Aucun</Control>
@ -620,6 +622,15 @@
<Control ID="mnuCreateSaveState">Créer une sauvegarde d'état</Control>
<Control ID="mnuResumeGameplay">Reprendre le jeu</Control>
<Control ID="mnuClose">Fermer</Control>
<Control ID="mnuOptions">Options</Control>
<Control ID="mnuVideoScale">Taille de l'image</Control>
<Control ID="mnuScale1x">1x</Control>
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Exporter une portion...">
<Control ID="lblStartTime">Début:</Control>

View file

@ -610,6 +610,15 @@
<Control ID="mnuCreateSaveState">クイックセーブを作る</Control>
<Control ID="mnuResumeGameplay">ここからゲームを再開する</Control>
<Control ID="mnuClose">終了</Control>
<Control ID="mnuOptions">設定</Control>
<Control ID="mnuVideoScale">映像サイズ</Control>
<Control ID="mnuScale1x">1倍</Control>
<Control ID="mnuScale2x">2倍</Control>
<Control ID="mnuScale3x">3倍</Control>
<Control ID="mnuScale4x">4倍</Control>
<Control ID="mnuScale5x">5倍</Control>
<Control ID="mnuScale6x">6倍</Control>
</Form>
<Form ID="frmSelectExportRange" Title="エクスポート範囲を指定する...">
<Control ID="lblStartTime">開始時点:</Control>

View file

@ -43,6 +43,8 @@
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
<Control ID="mnuFullscreen">Tela cheia</Control>
<Control ID="mnuVideoFilter">Filtro de vídeo</Control>
<Control ID="mnuNoneFilter">Nenhum</Control>
@ -620,6 +622,15 @@
<Control ID="mnuCreateSaveState">Create Save State</Control>
<Control ID="mnuResumeGameplay">Continuar jogo</Control>
<Control ID="mnuClose">Fechar</Control>
<Control ID="mnuOptions">Opções</Control>
<Control ID="mnuVideoScale">Tamanho do vídeo</Control>
<Control ID="mnuScale1x">1x</Control>
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Export specific range...">
<Control ID="lblStartTime">Start time:</Control>

View file

@ -43,6 +43,8 @@
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
<Control ID="mnuFullscreen">Полный экран</Control>
<Control ID="mnuVideoFilter">Фильтр изображения</Control>
<Control ID="mnuNoneFilter">Нет</Control>
@ -608,6 +610,15 @@
<Control ID="mnuCreateSaveState">Create Save State</Control>
<Control ID="mnuResumeGameplay">Resume Gameplay</Control>
<Control ID="mnuClose">Close</Control>
<Control ID="mnuOptions">Опции</Control>
<Control ID="mnuVideoScale">Размер экрана</Control>
<Control ID="mnuScale1x">1x</Control>
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Export specific range...">
<Control ID="lblStartTime">Start time:</Control>

View file

@ -43,6 +43,8 @@
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
<Control ID="mnuFullscreen">Повний екран</Control>
<Control ID="mnuVideoFilter">Фільтр зображення</Control>
<Control ID="mnuNoneFilter">Немає</Control>
@ -608,6 +610,15 @@
<Control ID="mnuCreateSaveState">Create Save State</Control>
<Control ID="mnuResumeGameplay">Відновити геймплей</Control>
<Control ID="mnuClose">Закрити</Control>
<Control ID="mnuOptions">Опції</Control>
<Control ID="mnuVideoScale">Розмір екрану</Control>
<Control ID="mnuScale1x">1x</Control>
<Control ID="mnuScale2x">2x</Control>
<Control ID="mnuScale3x">3x</Control>
<Control ID="mnuScale4x">4x</Control>
<Control ID="mnuScale5x">5x</Control>
<Control ID="mnuScale6x">6x</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Export specific range...">
<Control ID="lblStartTime">Start time:</Control>

View file

@ -634,6 +634,15 @@
<Control ID="mnuCreateSaveState">创建进度</Control>
<Control ID="mnuResumeGameplay">继续播放</Control>
<Control ID="mnuClose">关闭</Control>
<Control ID="mnuOptions">设置</Control>
<Control ID="mnuVideoScale">尺寸</Control>
<Control ID="mnuScale1x">1 倍</Control>
<Control ID="mnuScale2x">2 倍</Control>
<Control ID="mnuScale3x">3 倍</Control>
<Control ID="mnuScale4x">4 倍</Control>
<Control ID="mnuScale5x">5 倍</Control>
<Control ID="mnuScale6x">6 倍</Control>
</Form>
<Form ID="frmSelectExportRange" Title="Export specific range...">
<Control ID="lblStartTime">Start time:</Control>

View file

@ -49,6 +49,14 @@
this.mnuResumeGameplay = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.mnuClose = new System.Windows.Forms.ToolStripMenuItem();
this.mnuOptions = new System.Windows.Forms.ToolStripMenuItem();
this.mnuVideoScale = new System.Windows.Forms.ToolStripMenuItem();
this.mnuScale1x = new System.Windows.Forms.ToolStripMenuItem();
this.mnuScale2x = new System.Windows.Forms.ToolStripMenuItem();
this.mnuScale3x = new System.Windows.Forms.ToolStripMenuItem();
this.mnuScale4x = new System.Windows.Forms.ToolStripMenuItem();
this.mnuScale5x = new System.Windows.Forms.ToolStripMenuItem();
this.mnuScale6x = new System.Windows.Forms.ToolStripMenuItem();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trkPosition)).BeginInit();
this.pnlRenderer.SuspendLayout();
@ -77,16 +85,16 @@
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.tableLayoutPanel1.Size = new System.Drawing.Size(557, 454);
this.tableLayoutPanel1.Size = new System.Drawing.Size(256, 249);
this.tableLayoutPanel1.TabIndex = 0;
//
// trkPosition
//
this.trkPosition.Dock = System.Windows.Forms.DockStyle.Top;
this.trkPosition.LargeChange = 10;
this.trkPosition.Location = new System.Drawing.Point(56, 406);
this.trkPosition.Location = new System.Drawing.Point(56, 201);
this.trkPosition.Name = "trkPosition";
this.trkPosition.Size = new System.Drawing.Size(337, 45);
this.trkPosition.Size = new System.Drawing.Size(56, 45);
this.trkPosition.TabIndex = 1;
this.trkPosition.TickFrequency = 10;
this.trkPosition.TickStyle = System.Windows.Forms.TickStyle.Both;
@ -96,7 +104,7 @@
//
this.btnPausePlay.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.btnPausePlay.Image = global::Mesen.GUI.Properties.Resources.Play;
this.btnPausePlay.Location = new System.Drawing.Point(3, 410);
this.btnPausePlay.Location = new System.Drawing.Point(3, 205);
this.btnPausePlay.Name = "btnPausePlay";
this.btnPausePlay.Size = new System.Drawing.Size(47, 36);
this.btnPausePlay.TabIndex = 2;
@ -106,7 +114,7 @@
//
this.lblPosition.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.lblPosition.AutoSize = true;
this.lblPosition.Location = new System.Drawing.Point(399, 422);
this.lblPosition.Location = new System.Drawing.Point(118, 217);
this.lblPosition.MinimumSize = new System.Drawing.Size(49, 13);
this.lblPosition.Name = "lblPosition";
this.lblPosition.Size = new System.Drawing.Size(49, 13);
@ -124,7 +132,7 @@
this.pnlRenderer.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlRenderer.Location = new System.Drawing.Point(3, 3);
this.pnlRenderer.Name = "pnlRenderer";
this.pnlRenderer.Size = new System.Drawing.Size(551, 397);
this.pnlRenderer.Size = new System.Drawing.Size(250, 192);
this.pnlRenderer.TabIndex = 0;
//
// picNsfIcon
@ -132,7 +140,7 @@
this.picNsfIcon.Anchor = System.Windows.Forms.AnchorStyles.None;
this.picNsfIcon.BackgroundImage = global::Mesen.GUI.Properties.Resources.NsfBackground;
this.picNsfIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.picNsfIcon.Location = new System.Drawing.Point(199, 152);
this.picNsfIcon.Location = new System.Drawing.Point(49, 50);
this.picNsfIcon.Margin = new System.Windows.Forms.Padding(0);
this.picNsfIcon.MaximumSize = new System.Drawing.Size(500, 90);
this.picNsfIcon.Name = "picNsfIcon";
@ -152,17 +160,17 @@
this.tlpRenderer.Name = "tlpRenderer";
this.tlpRenderer.RowCount = 1;
this.tlpRenderer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tlpRenderer.Size = new System.Drawing.Size(549, 395);
this.tlpRenderer.Size = new System.Drawing.Size(248, 190);
this.tlpRenderer.TabIndex = 0;
this.tlpRenderer.MouseClick += new System.Windows.Forms.MouseEventHandler(this.ctrlRenderer_MouseClick);
//
// ctrlRenderer
//
this.ctrlRenderer.Anchor = System.Windows.Forms.AnchorStyles.None;
this.ctrlRenderer.Location = new System.Drawing.Point(146, 77);
this.ctrlRenderer.Location = new System.Drawing.Point(0, 0);
this.ctrlRenderer.Margin = new System.Windows.Forms.Padding(0);
this.ctrlRenderer.Name = "ctrlRenderer";
this.ctrlRenderer.Size = new System.Drawing.Size(256, 240);
this.ctrlRenderer.Size = new System.Drawing.Size(248, 190);
this.ctrlRenderer.TabIndex = 0;
this.ctrlRenderer.MouseClick += new System.Windows.Forms.MouseEventHandler(this.ctrlRenderer_MouseClick);
//
@ -173,19 +181,19 @@
this.tableLayoutPanel3.Controls.Add(this.lblVolume, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.trkVolume, 0, 0);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(454, 406);
this.tableLayoutPanel3.Location = new System.Drawing.Point(173, 201);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(100, 45);
this.tableLayoutPanel3.Size = new System.Drawing.Size(80, 45);
this.tableLayoutPanel3.TabIndex = 4;
//
// lblVolume
//
this.lblVolume.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.lblVolume.AutoSize = true;
this.lblVolume.Location = new System.Drawing.Point(25, 31);
this.lblVolume.Location = new System.Drawing.Point(15, 31);
this.lblVolume.MinimumSize = new System.Drawing.Size(49, 13);
this.lblVolume.Name = "lblVolume";
this.lblVolume.Size = new System.Drawing.Size(49, 13);
@ -200,7 +208,7 @@
this.trkVolume.Margin = new System.Windows.Forms.Padding(0);
this.trkVolume.Maximum = 100;
this.trkVolume.Name = "trkVolume";
this.trkVolume.Size = new System.Drawing.Size(100, 31);
this.trkVolume.Size = new System.Drawing.Size(80, 31);
this.trkVolume.TabIndex = 7;
this.trkVolume.TickFrequency = 10;
this.trkVolume.ValueChanged += new System.EventHandler(this.trkVolume_ValueChanged);
@ -213,10 +221,11 @@
// menuStrip2
//
this.menuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.mnuFile});
this.mnuFile,
this.mnuOptions});
this.menuStrip2.Location = new System.Drawing.Point(0, 0);
this.menuStrip2.Name = "menuStrip2";
this.menuStrip2.Size = new System.Drawing.Size(557, 24);
this.menuStrip2.Size = new System.Drawing.Size(256, 24);
this.menuStrip2.TabIndex = 1;
this.menuStrip2.Text = "menuStrip2";
//
@ -283,14 +292,78 @@
this.mnuClose.Text = "Close";
this.mnuClose.Click += new System.EventHandler(this.mnuClose_Click);
//
// mnuOptions
//
this.mnuOptions.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.mnuVideoScale});
this.mnuOptions.Name = "mnuOptions";
this.mnuOptions.Size = new System.Drawing.Size(61, 20);
this.mnuOptions.Text = "Options";
//
// mnuVideoScale
//
this.mnuVideoScale.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.mnuScale1x,
this.mnuScale2x,
this.mnuScale3x,
this.mnuScale4x,
this.mnuScale5x,
this.mnuScale6x});
this.mnuVideoScale.Image = global::Mesen.GUI.Properties.Resources.Fullscreen;
this.mnuVideoScale.Name = "mnuVideoScale";
this.mnuVideoScale.Size = new System.Drawing.Size(152, 22);
this.mnuVideoScale.Text = "Video Size";
//
// mnuScale1x
//
this.mnuScale1x.Name = "mnuScale1x";
this.mnuScale1x.Size = new System.Drawing.Size(152, 22);
this.mnuScale1x.Text = "1x";
this.mnuScale1x.Click += new System.EventHandler(this.mnuScale1x_Click);
//
// mnuScale2x
//
this.mnuScale2x.Name = "mnuScale2x";
this.mnuScale2x.Size = new System.Drawing.Size(152, 22);
this.mnuScale2x.Text = "2x";
this.mnuScale2x.Click += new System.EventHandler(this.mnuScale2x_Click);
//
// mnuScale3x
//
this.mnuScale3x.Name = "mnuScale3x";
this.mnuScale3x.Size = new System.Drawing.Size(152, 22);
this.mnuScale3x.Text = "3x";
this.mnuScale3x.Click += new System.EventHandler(this.mnuScale3x_Click);
//
// mnuScale4x
//
this.mnuScale4x.Name = "mnuScale4x";
this.mnuScale4x.Size = new System.Drawing.Size(152, 22);
this.mnuScale4x.Text = "4x";
this.mnuScale4x.Click += new System.EventHandler(this.mnuScale4x_Click);
//
// mnuScale5x
//
this.mnuScale5x.Name = "mnuScale5x";
this.mnuScale5x.Size = new System.Drawing.Size(152, 22);
this.mnuScale5x.Text = "5x";
this.mnuScale5x.Click += new System.EventHandler(this.mnuScale5x_Click);
//
// mnuScale6x
//
this.mnuScale6x.Name = "mnuScale6x";
this.mnuScale6x.Size = new System.Drawing.Size(152, 22);
this.mnuScale6x.Text = "6x";
this.mnuScale6x.Click += new System.EventHandler(this.mnuScale6x_Click);
//
// frmHistoryViewer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(557, 478);
this.ClientSize = new System.Drawing.Size(256, 273);
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.menuStrip2);
this.MinimumSize = new System.Drawing.Size(331, 384);
this.MinimumSize = new System.Drawing.Size(272, 312);
this.Name = "frmHistoryViewer";
this.Text = "History Viewer";
this.tableLayoutPanel1.ResumeLayout(false);
@ -332,5 +405,13 @@
private System.Windows.Forms.TrackBar trkVolume;
private System.Windows.Forms.PictureBox picNsfIcon;
private System.Windows.Forms.ToolStripMenuItem mnuCreateSaveState;
private System.Windows.Forms.ToolStripMenuItem mnuOptions;
private System.Windows.Forms.ToolStripMenuItem mnuVideoScale;
private System.Windows.Forms.ToolStripMenuItem mnuScale1x;
private System.Windows.Forms.ToolStripMenuItem mnuScale2x;
private System.Windows.Forms.ToolStripMenuItem mnuScale3x;
private System.Windows.Forms.ToolStripMenuItem mnuScale4x;
private System.Windows.Forms.ToolStripMenuItem mnuScale5x;
private System.Windows.Forms.ToolStripMenuItem mnuScale6x;
}
}

View file

@ -111,6 +111,17 @@ namespace Mesen.GUI.Forms
InteropEmu.HistoryViewerSetPosition((UInt32)trkPosition.Value * 2);
}
private void SetScale(int scale)
{
InteropEmu.ScreenSize size = InteropEmu.GetScreenSize(true);
Size newSize = new Size(size.Width * scale, size.Height * scale);
if(this.WindowState != FormWindowState.Maximized) {
Size sizeGap = newSize - ctrlRenderer.Size;
this.ClientSize += sizeGap;
}
ctrlRenderer.Size = newSize;
}
private void UpdateScale()
{
Size dimensions = pnlRenderer.ClientSize;
@ -255,5 +266,35 @@ namespace Mesen.GUI.Forms
{
InteropEmu.SetMasterVolume(trkVolume.Value / 10d, 0, InteropEmu.ConsoleId.HistoryViewer);
}
private void mnuScale1x_Click(object sender, EventArgs e)
{
SetScale(1);
}
private void mnuScale2x_Click(object sender, EventArgs e)
{
SetScale(2);
}
private void mnuScale3x_Click(object sender, EventArgs e)
{
SetScale(3);
}
private void mnuScale4x_Click(object sender, EventArgs e)
{
SetScale(4);
}
private void mnuScale5x_Click(object sender, EventArgs e)
{
SetScale(5);
}
private void mnuScale6x_Click(object sender, EventArgs e)
{
SetScale(6);
}
}
}