Saving BitmapSource as Tiff encoded JPEG using Libtiff.net

孤街醉人 提交于 2019-12-06 11:49:55

It's not clear what do you mean by saying " colours are messed up" but probably you should convert BGR samples of BitmapSource to RGB ones expected by LibTiff.Net.

I mean, make sure the order of color channels is RGB (most probably, it's not) before feeding pixels to WriteScanline method.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!