优化sku ai图片处理逻辑

This commit is contained in:
wule committed 2025-11-03 11:25:42 +08:00
1 parent dc95bd8621
commit 4d0478a9c5
7 files changed
+284 -193

No files matched your search

+76 -75
View File
@@ -29,16 +29,17 @@ namespace TemuKJD.ToolForms
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.pbSkuOriginalImg = new System.Windows.Forms.PictureBox();
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
this.btnGetOriginalImg = new DevComponents.DotNetBar.PanelEx();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.pnlMore = new DevComponents.DotNetBar.PanelEx();
this.pbSkuImg = new System.Windows.Forms.PictureBox();
this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
this.btnUploadImg = new DevComponents.DotNetBar.PanelEx();
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
this.label1 = new System.Windows.Forms.Label();
this.chkSpecName = new TemuKJD.UserComponent.UcCheckBox(this.components);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -76,8 +77,8 @@ namespace TemuKJD.ToolForms
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer3);
this.splitContainer1.Panel2.Padding = new System.Windows.Forms.Padding(0, 2, 2, 2);
this.splitContainer1.Size = new System.Drawing.Size(206, 127);
this.splitContainer1.SplitterDistance = 102;
this.splitContainer1.Size = new System.Drawing.Size(204, 125);
this.splitContainer1.SplitterDistance = 101;
this.splitContainer1.SplitterWidth = 2;
this.splitContainer1.TabIndex = 0;
//
@@ -96,9 +97,9 @@ namespace TemuKJD.ToolForms
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.panelEx1);
this.splitContainer2.Size = new System.Drawing.Size(100, 123);
this.splitContainer2.SplitterDistance = 96;
this.splitContainer2.Panel2.Controls.Add(this.btnGetOriginalImg);
this.splitContainer2.Size = new System.Drawing.Size(99, 121);
this.splitContainer2.SplitterDistance = 94;
this.splitContainer2.SplitterWidth = 2;
this.splitContainer2.TabIndex = 0;
//
@@ -108,34 +109,34 @@ namespace TemuKJD.ToolForms
this.pbSkuOriginalImg.Image = global::TemuKJD.Properties.Resources.nopic;
this.pbSkuOriginalImg.Location = new System.Drawing.Point(0, 0);
this.pbSkuOriginalImg.Name = "pbSkuOriginalImg";
this.pbSkuOriginalImg.Size = new System.Drawing.Size(100, 96);
this.pbSkuOriginalImg.Size = new System.Drawing.Size(99, 94);
this.pbSkuOriginalImg.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbSkuOriginalImg.TabIndex = 0;
this.pbSkuOriginalImg.TabStop = false;
//
// panelEx1
// btnGetOriginalImg
//
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelEx1.Cursor = System.Windows.Forms.Cursors.Hand;
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panelEx1.Location = new System.Drawing.Point(0, 0);
this.panelEx1.Name = "panelEx1";
this.panelEx1.Size = new System.Drawing.Size(100, 25);
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.panelEx1.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.panelEx1.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.panelEx1.Style.ForeColor.Color = System.Drawing.Color.White;
this.panelEx1.Style.GradientAngle = 90;
this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.panelEx1.TabIndex = 521;
this.panelEx1.Text = "下载原图";
this.btnGetOriginalImg.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnGetOriginalImg.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnGetOriginalImg.DisabledBackColor = System.Drawing.Color.Empty;
this.btnGetOriginalImg.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnGetOriginalImg.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnGetOriginalImg.Location = new System.Drawing.Point(0, 0);
this.btnGetOriginalImg.Name = "btnGetOriginalImg";
this.btnGetOriginalImg.Size = new System.Drawing.Size(99, 25);
this.btnGetOriginalImg.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnGetOriginalImg.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnGetOriginalImg.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnGetOriginalImg.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnGetOriginalImg.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnGetOriginalImg.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnGetOriginalImg.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnGetOriginalImg.Style.GradientAngle = 90;
this.btnGetOriginalImg.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnGetOriginalImg.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnGetOriginalImg.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnGetOriginalImg.TabIndex = 521;
this.btnGetOriginalImg.Text = "下载原图";
//
// splitContainer3
//
@@ -153,9 +154,9 @@ namespace TemuKJD.ToolForms
//
// splitContainer3.Panel2
//
this.splitContainer3.Panel2.Controls.Add(this.panelEx2);
this.splitContainer3.Size = new System.Drawing.Size(100, 123);
this.splitContainer3.SplitterDistance = 96;
this.splitContainer3.Panel2.Controls.Add(this.btnUploadImg);
this.splitContainer3.Size = new System.Drawing.Size(99, 121);
this.splitContainer3.SplitterDistance = 94;
this.splitContainer3.SplitterWidth = 2;
this.splitContainer3.TabIndex = 1;
//
@@ -167,7 +168,7 @@ namespace TemuKJD.ToolForms
this.pnlMore.Cursor = System.Windows.Forms.Cursors.Hand;
this.pnlMore.DisabledBackColor = System.Drawing.Color.Empty;
this.pnlMore.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.pnlMore.Location = new System.Drawing.Point(77, 74);
this.pnlMore.Location = new System.Drawing.Point(76, 76);
this.pnlMore.Name = "pnlMore";
this.pnlMore.Size = new System.Drawing.Size(23, 23);
this.pnlMore.Style.Alignment = System.Drawing.StringAlignment.Center;
@@ -192,35 +193,35 @@ namespace TemuKJD.ToolForms
this.pbSkuImg.Image = global::TemuKJD.Properties.Resources.nopic;
this.pbSkuImg.Location = new System.Drawing.Point(0, 0);
this.pbSkuImg.Name = "pbSkuImg";
this.pbSkuImg.Size = new System.Drawing.Size(100, 96);
this.pbSkuImg.Size = new System.Drawing.Size(99, 94);
this.pbSkuImg.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pbSkuImg.TabIndex = 0;
this.pbSkuImg.TabStop = false;
this.pbSkuImg.Click += new System.EventHandler(this.pbSkuImg_Click);
//
// panelEx2
// btnUploadImg
//
this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelEx2.Cursor = System.Windows.Forms.Cursors.Hand;
this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty;
this.panelEx2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelEx2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panelEx2.Location = new System.Drawing.Point(0, 0);
this.panelEx2.Name = "panelEx2";
this.panelEx2.Size = new System.Drawing.Size(100, 25);
this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx2.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.panelEx2.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.panelEx2.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.panelEx2.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.panelEx2.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.panelEx2.Style.ForeColor.Color = System.Drawing.Color.White;
this.panelEx2.Style.GradientAngle = 90;
this.panelEx2.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx2.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.panelEx2.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.panelEx2.TabIndex = 521;
this.panelEx2.Text = "新增AI图";
this.btnUploadImg.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.btnUploadImg.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnUploadImg.DisabledBackColor = System.Drawing.Color.Empty;
this.btnUploadImg.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnUploadImg.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUploadImg.Location = new System.Drawing.Point(0, 0);
this.btnUploadImg.Name = "btnUploadImg";
this.btnUploadImg.Size = new System.Drawing.Size(99, 25);
this.btnUploadImg.Style.Alignment = System.Drawing.StringAlignment.Center;
this.btnUploadImg.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnUploadImg.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.btnUploadImg.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.btnUploadImg.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
this.btnUploadImg.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
this.btnUploadImg.Style.ForeColor.Color = System.Drawing.Color.White;
this.btnUploadImg.Style.GradientAngle = 90;
this.btnUploadImg.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
this.btnUploadImg.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnUploadImg.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
this.btnUploadImg.TabIndex = 521;
this.btnUploadImg.Text = "新增SKU图";
//
// splitContainer4
//
@@ -228,43 +229,43 @@ namespace TemuKJD.ToolForms
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer4.IsSplitterFixed = true;
this.splitContainer4.Location = new System.Drawing.Point(1, 1);
this.splitContainer4.Location = new System.Drawing.Point(2, 2);
this.splitContainer4.Name = "splitContainer4";
this.splitContainer4.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer4.Panel1
//
this.splitContainer4.Panel1.Controls.Add(this.label1);
this.splitContainer4.Panel1.Padding = new System.Windows.Forms.Padding(0, 2, 0, 0);
this.splitContainer4.Panel1.Controls.Add(this.chkSpecName);
this.splitContainer4.Panel1.Padding = new System.Windows.Forms.Padding(4, 2, 0, 0);
this.splitContainer4.Panel1MinSize = 20;
//
// splitContainer4.Panel2
//
this.splitContainer4.Panel2.Controls.Add(this.splitContainer1);
this.splitContainer4.Panel2MinSize = 20;
this.splitContainer4.Size = new System.Drawing.Size(206, 154);
this.splitContainer4.Size = new System.Drawing.Size(204, 152);
this.splitContainer4.SplitterDistance = 25;
this.splitContainer4.SplitterWidth = 2;
this.splitContainer4.TabIndex = 1;
//
// label1
// chkSpecName
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(0, 2);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(206, 23);
this.label1.TabIndex = 0;
this.label1.Text = "label1";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.chkSpecName.Dock = System.Windows.Forms.DockStyle.Fill;
this.chkSpecName.Location = new System.Drawing.Point(4, 2);
this.chkSpecName.Name = "chkSpecName";
this.chkSpecName.Size = new System.Drawing.Size(200, 23);
this.chkSpecName.TabIndex = 0;
this.chkSpecName.Text = "ucCheckBox1";
this.chkSpecName.UseVisualStyleBackColor = true;
//
// UcSkuImgItem
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.SystemColors.MenuHighlight;
this.BackColor = System.Drawing.Color.LightSteelBlue;
this.Controls.Add(this.splitContainer4);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Name = "UcSkuImgItem";
this.Padding = new System.Windows.Forms.Padding(1);
this.Padding = new System.Windows.Forms.Padding(2);
this.Size = new System.Drawing.Size(208, 156);
this.SizeChanged += new System.EventHandler(this.UcImgChange_SizeChanged);
this.Resize += new System.EventHandler(this.UcImgChange_Resize);
@@ -296,11 +297,11 @@ namespace TemuKJD.ToolForms
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.SplitContainer splitContainer3;
public System.Windows.Forms.PictureBox pbSkuImg;
public DevComponents.DotNetBar.PanelEx panelEx2;
public DevComponents.DotNetBar.PanelEx panelEx1;
public DevComponents.DotNetBar.PanelEx btnUploadImg;
public DevComponents.DotNetBar.PanelEx btnGetOriginalImg;
public System.Windows.Forms.PictureBox pbSkuOriginalImg;
private System.Windows.Forms.SplitContainer splitContainer4;
public System.Windows.Forms.Label label1;
public DevComponents.DotNetBar.PanelEx pnlMore;
public UserComponent.UcCheckBox chkSpecName;
}
}