System.Image
Images in memory and the file formats PNG, BMP and PPM: Image holds the pixels as 32-bit ARGB values, Color
is one of them.
using System.Image;
var image = try Image.Load("sprite.png"); // PNG, BMP or PPM, found by the contentvar 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 |
|---|---|
Color |
A color: alpha, red, green and blue, from 0 to 255 each (an alpha of 0 is transparent, 255 opaque). |
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. |