I need to process and save images in their original bpp (1 - for BnW, 8 - for gray, 24 - color). After processing I always have 24bpp (due to processing with Aforge.Net). I
Use Graphics class for non indexed image. UseBitmap.LockBits and Bitmap.UnlockBits when processing indexed images