How to grayscale an image

How to grayscale an image

         You can convert color images to their grayscale versions by using `Grayscale` method of the RasterImage class. Also, you can convert vector images for grayscale by rasterizing them using `png` format: