| 12345678910111213141516171819202122232425262728 |
- using System.Linq;
- using System.IO;
- using System.Drawing;
- namespace System.Fire.Container {
- public partial class ContainerList {
- /// <summary>
- /// Get an image object that was stored in the container
- /// </summary>
- /// <param name="FileIndex">The container file index</param>
- /// <returns>Returns the image object</returns>
- public Image GetImage(int FileIndex) {
- return this.GetImage(this._files[FileIndex]);
- }
- /// <summary>
- /// Get an image object that was stored in the container
- /// </summary>
- /// <param name="File">The container file index</param>
- /// <returns>Returns the image object</returns>
- public Image GetImage(ContainerFile File) {
- return Image.FromStream(GetStream(File));
- }
- }
- }
|