this repo has no description
at develop 894 B view raw
1// Copyright (c) 2021 ezequias2d <ezequiasmoises@gmail.com> and the Peridot contributors 2// This code is licensed under MIT license (see LICENSE for details) 3 4using System.Drawing; 5 6namespace Peridot; 7 8/// <summary> 9/// Represents a 2D texture to use in <see cref="SpriteBatch{TTexture}"/>. 10/// </summary> 11public interface Image : IDisposable 12{ 13 /// <summary> 14 /// A bool indicating whether this instance has been disposed. 15 /// </summary> 16 public bool IsDisposed { get; } 17 18 /// <summary> 19 /// Image size. 20 /// </summary> 21 public Size Size { get; } 22 23 /// <summary> 24 /// Pixel format. 25 /// </summary> 26 /// <value></value> 27 public PixelFormat Format { get; } 28 29 /// <summary> 30 /// Image width. 31 /// </summary> 32 public int Width => Size.Width; 33 34 /// <summary> 35 /// Image height. 36 /// </summary> 37 public int Height => Size.Height; 38}