Floodfill function

from PIL import Image,Image Draw

img=Image.open(R"c://ss.jpg")

img1=img.convert("RGB")

seed=(263,70)

rep=(255,255,0)

ImageDraw.floodfill(img,seed,rep,thresh=50)

img.show( )




Comments

Popular posts from this blog

Polygon function