the GDI plus bmp encoder doesn't support 24bpp. (I'm not entirely sure, but I even think it doesn't even support this parameter at all).
this is similar to trying to set a JPEG encoder to 32bpp (or something other than 24), JPEG doesn't support an alpha channel, so encoding is Always 24bpp