Пример #1
0
 private IEnumerable <Point> GetSubpixelPoints(Point p)
 => new Rectangle(p.X * WidthZoomFactor, p.Y * HeightZoomFactor, WidthZoomFactor, HeightZoomFactor).Area;
Пример #2
0
 private IEnumerable <Color> GetPixels(Bitmap bmp, Point p)
 => GetSubpixelPoints(p).Select(p => bmp.GetPixel(p.X, p.Y));