Graphic seed fill algorithm C language implementation, with reference value