How to grayscale an image

How to grayscale an image

         To create grayscale versions of your color images, you need to load images and apply Grayscale method of the RasterImage class to them. It is also possible to convert vector images for grayscale by rasterizing them with using `png` format: