diff --git a/src/Gifitti/Gifitti/Models/GifModel.cs b/src/Gifitti/Gifitti/Models/GifModel.cs index 90bae25e2f1375e40ab6a223d11fd03e0196c178..91a82150703b4f99a9ad8809d631f66c12a1804f 100644 --- a/src/Gifitti/Gifitti/Models/GifModel.cs +++ b/src/Gifitti/Gifitti/Models/GifModel.cs @@ -110,32 +110,7 @@ namespace Gifitti.Models } } - /// <summary> - /// Resizes a GIF to be newWidth x newHeight px - /// </summary> - /// <param name="newWidth">New Width dimension in px.</param> - /// <param name="newHeight">New Height dimension in px.</param> - //public void resizeGif(int newWidth, int newHeight) - //{ - // using (MagickImageCollection collection = new MagickImageCollection()) - // { - // for (int i = 0; i < frames.Length; i++) - // { - // collection.Add(new MagickImage(frames[i] as Bitmap)); - // collection[i].Resize(newWidth, newHeight); - // } - // // Optionally reduce colors - // QuantizeSettings settings = new QuantizeSettings(); - // settings.Colors = 256; - // collection.Quantize(settings); - - // // Optionally optimize the images (images should have the same size). - // collection.Optimize(); - - // // Save gif - // collection.Write("tempResize.gif"); - // } - //} + /// <summary> /// Fetches a sub gif over frames start -> stop diff --git a/src/Gifitti/Gifitti/View_Models/MainForm.Designer.cs b/src/Gifitti/Gifitti/View_Models/MainForm.Designer.cs index 58e01780bcd913cfc7061eb9199e71eb2664ef31..f1754d381779179dc4bfa045c73b06f6eec4ff6a 100644 --- a/src/Gifitti/Gifitti/View_Models/MainForm.Designer.cs +++ b/src/Gifitti/Gifitti/View_Models/MainForm.Designer.cs @@ -1,6 +1,4 @@ -/// <summary> -/// Controller-View Bindings known as View Models -/// </summary> + namespace Gifitti.View_Models { partial class MainForm diff --git a/src/Gifitti/Gifitti/View_Models/MainForm.cs b/src/Gifitti/Gifitti/View_Models/MainForm.cs index 9ad3ad1fe9106ee473e3da3ec3575162d2e92e38..6e660b0e7e646fafb6030f1ec3df8f2d61490edf 100644 --- a/src/Gifitti/Gifitti/View_Models/MainForm.cs +++ b/src/Gifitti/Gifitti/View_Models/MainForm.cs @@ -12,9 +12,6 @@ using System.Windows.Forms; using Gifitti.Models; using System.Threading; -/// <summary> -/// Controller-View Binding type objects know as View-Models -/// </summary> namespace Gifitti.View_Models { /// <summary> @@ -55,7 +52,7 @@ namespace Gifitti.View_Models /// Validates that a GIF is loaded and in the model instance. /// If not instance is loaded a prompt is displayed to the user. /// </summary> - /// <returns> True iff a gif file is loaded and stored in the model. False else. /returns> + /// <returns> True iff a gif file is loaded and stored in the model. False else. </returns> private Boolean chkImage() { try @@ -63,7 +60,7 @@ namespace Gifitti.View_Models int Length = globalGif.GetFrameCount(FrameDimension.Time); return true; } - catch (Exception e) + catch (Exception) { MessageBox.Show("Must load a gif before this option is availiable!"); }