示例#1
0
    private static bool ImageRegionContainsInvalidElements <TPixel>(ImageBase <TPixel> image, Point start, int width, int height)
        where TPixel : struct
    {
        var elems = image.GetElementsByPixel(start.X, start.Y, width, height);

        return(elems.Any(x => x is null));
    }