|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
//using System.ComponentModel;
|
|
|
|
|
//using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
//using System.Drawing.Drawing2D;
|
|
|
|
|
//using System.Linq;
|
|
|
|
|
//using System.Text;
|
|
|
|
|
//using System.Threading.Tasks;
|
|
|
|
@ -147,6 +148,7 @@ namespace photo_sorter
|
|
|
|
|
{
|
|
|
|
|
pbar.Value += 10;
|
|
|
|
|
lbl_current_fname.Text = "Loading: " + Path.GetFileName(fname);
|
|
|
|
|
//img_preview.Image = ToolStripRenderer.CreateDisabledImage(img_preview.Image); //Grey out image (affects performance negatively)
|
|
|
|
|
img_preview.Visible = false;
|
|
|
|
|
gbox_preview.Enabled = false;
|
|
|
|
|
pbar.Value += 10;
|
|
|
|
@ -161,8 +163,9 @@ namespace photo_sorter
|
|
|
|
|
raw_img.AutoOrient();
|
|
|
|
|
img_stream.Position = 0;
|
|
|
|
|
raw_img.Write(img_stream, ImageMagick.MagickFormat.Jpeg);
|
|
|
|
|
//raw_img.Write(img_stream, ImageMagick.MagickFormat.Png);
|
|
|
|
|
pbar.Value += 15;
|
|
|
|
|
stat_bar_label.Text = "Creating bitmap...";
|
|
|
|
|
stat_bar_label.Text = "Generating preview...";
|
|
|
|
|
status_bar.Refresh();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|