C# Why Bitmap.Save ignores PixelFormat of Bitmap?

后端 未结 4 582
北恋
北恋 2021-01-13 19:24

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

4条回答
  •  忘掉有多难
    2021-01-13 20:23

    Use Graphics class for non indexed image. UseBitmap.LockBits and Bitmap.UnlockBits when processing indexed images

提交回复
热议问题