The GrayscaleBitmap class processes a source and converts the image to a grayscale color scheme.
For simplicity, we only process Bgr32 or Bgra32 formatted bitmaps, anything else is converted to one of those formats. Bgr32 and Bgra32 share the same memory layout for the RGB channels.