Great tricks !

Also another solution in bitmap is clip paint.
It has an open gap algorithm with the paint bucket, priceless !

Marc