For 32 bit dithering, reuse the 24 bit dithering code, but apply a 8 bit right shift first.
Attach a file by drag & drop or click to upload