示例#1
0
        public override (int a, int r, int g, int b) GetPixel(int x, int y)
        {
            var pixel = platformBitmap.GetPixel(x, y);

            return(pixel.A, pixel.R, pixel.G, pixel.B);
        }
示例#2
0
 public override void Set(Stream stream)
 {
     platformBitmap = new Drawing.Bitmap(stream);
     platformBitmap.GetPixel(0, 0); // TODO: this is magic line that prevents calls to GetPixel from crashing when doing the encode
 }