If it’s a trivial design, Flood Fill is the simple answer. If the design has any complexity, you’re better off splitting it manually.