using System.Drawing;

namespace Icarus.Graphics.Animation
{

	public interface IFramesetProvider
	{
		/**
		 * Goes through the image and extracts frames from it.
		 */
		void fillFrameset(Frameset frameSet, Bitmap source);

		/**
		 * Will export the frameset passed in to a file, whose name is
		 * passed in. The export is such that it is guaranteed to be
		 * loadable by the corresponding fillFrameset function. Other
		 * than that, nothing should be assumed about the export. This
		 * function assumes that the filename points to a file that
		 * can actually be created, and if there are any problems,
		 * like null filename, or frameset, or premission problems
		 * with creating the file, an Exception will be thrown.
		 */
		void exportFrameset(Frameset frameset, string filename);
	}
}
