// -------------------------------------------------------------------------------------------------------------------- // // Copyright (c) James South. // Licensed under the Apache License, Version 2.0. // // // Provides the necessary information to support bitmap images. // // -------------------------------------------------------------------------------------------------------------------- namespace ImageProcessor.Imaging.Formats { using System.Drawing.Imaging; using System.Text; /// /// Provides the necessary information to support bitmap images. /// public class BitmapFormat : FormatBase { /// /// Gets the file header. /// public override byte[] FileHeader { get { return Encoding.ASCII.GetBytes("BM"); } } /// /// Gets the list of file extensions. /// public override string[] FileExtensions { get { return new[] { "bmp" }; } } /// /// Gets the standard identifier used on the Internet to indicate the type of data that a file contains. /// public override string MimeType { get { return "image/bmp"; } } /// /// Gets the . /// public override ImageFormat ImageFormat { get { return ImageFormat.Bmp; } } } }