mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-04-24 07:13:35 +03:00
33 lines
949 B
C#
33 lines
949 B
C#
using Syroot.Maths;
|
|
|
|
namespace Syroot.Worms
|
|
{
|
|
/// <summary>
|
|
/// Represents a pixel-based 2D image in different color formats.
|
|
/// </summary>
|
|
public class Bitmap
|
|
{
|
|
// ---- PROPERTIES ---------------------------------------------------------------------------------------------
|
|
|
|
/// <summary>
|
|
/// Gets or sets the number of bits required to describe a color per pixel.
|
|
/// </summary>
|
|
public byte BitsPerPixel { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the colors in the palette of the bitmap, if it has one.
|
|
/// </summary>
|
|
public Color[] Palette { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the size of the image in pixels.
|
|
/// </summary>
|
|
public Vector2 Size { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the data of the image pixels.
|
|
/// </summary>
|
|
public byte[] Data { get; set; }
|
|
}
|
|
}
|