Commit 094e496a by 陶然

优化

parent f1c499ac
...@@ -20,7 +20,7 @@ namespace Kivii.Sample.ImageUploader ...@@ -20,7 +20,7 @@ namespace Kivii.Sample.ImageUploader
public FrmImageEditor() public FrmImageEditor()
{ {
InitializeComponent(); InitializeComponent();
pictureBox.SelectionBounds = new Rectangle(0, 0, 500, 600); //pictureBox.SelectionBounds = new Rectangle(0, 0, 500, 600);
} }
public Bitmap backgroundImage; public Bitmap backgroundImage;
...@@ -38,6 +38,7 @@ namespace Kivii.Sample.ImageUploader ...@@ -38,6 +38,7 @@ namespace Kivii.Sample.ImageUploader
{ {
pictureBox.BackgroundImage = backgroundImage; pictureBox.BackgroundImage = backgroundImage;
pictureBox.BackgroundImageLayout = ImageLayout.Zoom; pictureBox.BackgroundImageLayout = ImageLayout.Zoom;
pictureBox.SelectionBounds = new Rectangle(0, 0, backgroundImage.Width, (int)(backgroundImage.Height * 0.75));
pictureBox.EnableSelection = true; pictureBox.EnableSelection = true;
resizePictureBox(); resizePictureBox();
} }
......
...@@ -32,5 +32,5 @@ using System.Runtime.InteropServices; ...@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示: //通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.6300")] [assembly: AssemblyVersion("5.4.2024.7090")]
[assembly: AssemblyFileVersion("5.4.2024.6300")] [assembly: AssemblyFileVersion("5.4.2024.7090")]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment