private bool CanRead(Point point) { if (point.X < 0 || point.Y < 0 || point.X >= m_imageEncoder.GetImageHight() || point.Y >= m_imageEncoder.GetImageWidth() ) { return(false); } return(true); }
public Point Search() { int imageWidth = m_imageEncoder.GetImageWidth(); int imageHight = m_imageEncoder.GetImageHight(); for (int i = 0; i < imageWidth; i++) { for (int j = 0; j < imageHight; j++) { Point point = new Point(i, j); int value = m_imageEncoder.GetValue(point);; if (value == 1) { return(point); } } } return(default(Point)); }