Skip to content
Snippets Groups Projects
Commit 49b1502f authored by Riley Mcgee's avatar Riley Mcgee
Browse files

Error with Form designer

parent ce288138
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
/// <summary>
/// Controller-View Bindings known as View Models
/// </summary>

namespace Gifitti.View_Models
{
partial class MainForm
......
......@@ -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!");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment