public PageSnapshot monochrome ( WebElement element ) { try { image = ImageProcessor . monochromeArea ( image , new Coordinates ( element , devicePixelRatio ) ) ; } catch ( RasterFormatException rfe ) { throw new ElementOutsideViewportException ( ELEMENT_OUT_OF_VIEWPORT_EX_MESSAGE , rfe ) ; } return this ; }
Makes an element withing a page monochrome - applies gray - and - white filter . Original colors remain on the rest of the page .