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)