From ffa0784758e77b710195770e4424fb7cf64129d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BA=E3=82=93=E3=81=90=E3=81=84=E3=82=93?= Date: Mon, 17 May 2021 23:55:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=89=E3=83=A9=E3=83=83=E3=82=B0=EF=BC=86?= =?UTF-8?q?=E3=83=89=E3=83=AD=E3=83=83=E3=83=97=E6=A9=9F=E8=83=BD=20?= =?UTF-8?q?=E3=82=B0=E3=83=A9=E3=83=95=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- J3D_BCK_Editor/File_Edit/Plot.cs | 2 +- J3D_BCK_Editor/Form1.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/J3D_BCK_Editor/File_Edit/Plot.cs b/J3D_BCK_Editor/File_Edit/Plot.cs index 8600488..b7910ba 100644 --- a/J3D_BCK_Editor/File_Edit/Plot.cs +++ b/J3D_BCK_Editor/File_Edit/Plot.cs @@ -279,7 +279,7 @@ public void Draw(PictureBox pictureBox1 , DataGridView dgv ,string dgvcellname , } Debugger.Append(""+canvas_size); - Bitmap canvas2 = new Bitmap(Convert.ToInt32((Frame_Num) *plot_scale+20),Convert.ToInt32 (canvas_size*plot_scaley)+20) ; + Bitmap canvas2 = new Bitmap(Convert.ToInt32(Max_Frame * plot_scale + 20), Convert.ToInt32 (canvas_size*plot_scaley)+20) ; Graphics g2 = Graphics.FromImage(canvas2); g2.Clear(Color.Transparent); //描画 diff --git a/J3D_BCK_Editor/Form1.cs b/J3D_BCK_Editor/Form1.cs index 979b897..502e16c 100644 --- a/J3D_BCK_Editor/Form1.cs +++ b/J3D_BCK_Editor/Form1.cs @@ -72,7 +72,14 @@ private void Form1_Load(object sender, EventArgs e) debugger.Enabled = false; tabControl1.TabPages.Remove(tabPage6); + + //コマンドライン引数を配列で取得する + string[] files = System.Environment.GetCommandLineArgs(); + + if (files.Length > 1) File_Select.Filecheck(files[1]); + + } private void 開くToolStripMenuItem_Click(object sender, EventArgs e)