public void SetPixel(int x, int y, PixelData colour) { PixelData *pixel = PixelAt(x, y); *pixel = colour; }
public Color GetPixel(int x, int y) { PixelData data = *PixelAt(x, y); return(Color.FromArgb(data.red, data.green, data.blue)); }