Skip to content
CShift0.45

System.Image

Images in memory and the file formats PNG, BMP and PPM: Image holds the pixels as 32-bit ARGB values; one of them is a System.Drawing.Color.

using System.Drawing;
using System.Image;
var image = try Image.Load("sprite.png"); // PNG, BMP or PPM, found by the content
var c = image.GetPixel(0, 0);
image.SetPixel(1, 0, Color.FromArgb(255, c.R, 0, 0));
try image.Save("sprite.bmp"); // the format from the extension
Type Description
Image An image: Width times Height pixels, stored row by row from the top left as 32-bit ARGB values (0xAARRGGBB, not premultiplied) in Pixels.
ImageError The errors of loading, decoding and saving images (Image.Load, Image.Decode, Image.Save).
ImageFormat The file formats of images.