Bitmap img = new Bitmap(\"C:\\\\temp\\\\images\\\\file.jpg\");
img.PixelFormat is Format24bppRgb
when I am doing deep copy
Bit
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.
You can clone the bitmap like this, which will create a deep copy:
Bitmap img = new Bitmap("C:\\temp\\images\\file.jpg");
// Clone the bitmap.
Rectangle cloneRect = new Rectangle(0, 0, img.Width, img.Height);
System.Drawing.Imaging.PixelFormat format =
img.PixelFormat;
Bitmap img2 = img.Clone(cloneRect, format);