// Copyright (c) 2021 ezequias2d and the Peridot contributors // This code is licensed under MIT license (see LICENSE for details) using System.Drawing; namespace Peridot; /// /// Represents a 2D texture to use in . /// public interface Image : IDisposable { /// /// A bool indicating whether this instance has been disposed. /// public bool IsDisposed { get; } /// /// Image size. /// public Size Size { get; } /// /// Pixel format. /// /// public PixelFormat Format { get; } /// /// Image width. /// public int Width => Size.Width; /// /// Image height. /// public int Height => Size.Height; }