improved cropper ui
This commit is contained in:
parent
f8eb06baa3
commit
e02b41f353
|
@ -39,9 +39,9 @@
|
|||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.rubberBand1.Disabled = false;
|
||||
this.rubberBand1.Image = null;
|
||||
this.rubberBand1.Location = new System.Drawing.Point(12, 25);
|
||||
this.rubberBand1.Location = new System.Drawing.Point(12, 38);
|
||||
this.rubberBand1.Name = "rubberBand1";
|
||||
this.rubberBand1.Size = new System.Drawing.Size(776, 527);
|
||||
this.rubberBand1.Size = new System.Drawing.Size(760, 511);
|
||||
this.rubberBand1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.rubberBand1.TabIndex = 0;
|
||||
this.rubberBand1.ImageCropped += new System.EventHandler(this.RubberBand1_ImageCropped);
|
||||
|
@ -51,8 +51,10 @@
|
|||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
||||
this.label1.MaximumSize = new System.Drawing.Size(760, 28);
|
||||
this.label1.MinimumSize = new System.Drawing.Size(760, 28);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(776, 13);
|
||||
this.label1.Size = new System.Drawing.Size(760, 28);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Mit der Maus einen Rahmen ziehen. Dieser ist veränderbar. Doppelklick im Rahmen s" +
|
||||
"peichert den Zuschnitt. Klick außerhalb bricht den Zuschneide-Vorgang ab.";
|
||||
|
@ -62,19 +64,20 @@
|
|||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 564);
|
||||
this.ClientSize = new System.Drawing.Size(784, 561);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.rubberBand1);
|
||||
this.Cursor = System.Windows.Forms.Cursors.Default;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(816, 603);
|
||||
this.MinimumSize = new System.Drawing.Size(800, 600);
|
||||
this.Name = "Cropper";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Bild zuschneiden";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Cropper_FormClosing);
|
||||
this.Resize += new System.EventHandler(this.Cropper_Resize);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
|
|
@ -47,6 +47,12 @@ namespace Mk0.Software.ImageSorter
|
|||
Close();
|
||||
}
|
||||
|
||||
private void Cropper_Resize(object sender, EventArgs e)
|
||||
{
|
||||
label1.MaximumSize = new Size(Width - 40, 28);
|
||||
label1.Size = new Size(Width - 40, 28);
|
||||
}
|
||||
|
||||
private void Cropper_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
img.Dispose();
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<PublisherName>manuelkamper.com</PublisherName>
|
||||
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.37.0.0</ApplicationVersion>
|
||||
<ApplicationVersion>1.38.0.0</ApplicationVersion>
|
||||
<UseApplicationTrust>true</UseApplicationTrust>
|
||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||
<ExcludeDeploymentUrl>true</ExcludeDeploymentUrl>
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.37.*")]
|
||||
[assembly: AssemblyVersion("1.38.*")]
|
||||
//[assembly: AssemblyFileVersion("1.6.0.0")]
|
||||
|
|
Loading…
Reference in New Issue