目前,我正在通过将映像转换为byte[],然后转换为base64 Convert.ToBase64(byte[]),并使用JSON将其发送到服务器--参见下面的代码。从图像到字节到base64到JSONimage.SetSource(e.ChosenPhoto);byte[] imageBytes;
using (M
public Bitmap ApplyDecreaseColourDepth(int offset, Bitmap bitmapImage) for (int y = 0;y < bitmapImage.Height; y++) for (int x = 0; x < bitmapImage.Width; x++){
Color pixelColor = bitmapImage.GetPixel(x, y);