public boolean forall ( PixelPredicate predicate ) { return Arrays . stream ( points ( ) ) . allMatch ( p -> predicate . test ( p . x , p . y , pixel ( p ) ) ) ; }
Returns true if the predicate is true for all pixels in the image .