Bitmap deep copy changing PixelFormat

前端 未结 2 1593
忘掉有多难
忘掉有多难 2021-01-26 03:53
Bitmap img = new Bitmap(\"C:\\\\temp\\\\images\\\\file.jpg\");

img.PixelFormat is Format24bppRgb

when I am doing deep copy

Bit         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 04:32

    Just found solution instead new Bitmap(img) use Bitmap img2 = (Bitmap) img.Clone(); don't know it is the right solution, but it do the job.

提交回复
热议问题