weixin_39609620
2020-12-08 19:22PixelFormat Tiff CcittGr4 wrong on linux
Hi, i'm working with Tiff CCITTGr4 images (bitonal) and when i test in linux (net core 2.2/3.0/3.1 - libgdiplus: 4.2-1+b1) the Bitmap class give me PixelFormat.Format24bppRgb When i run in windows, PixelFormat give me Format1bppIndexed (the correct value). I've tested in mono (docker) and get wrong value too.
The test code is very simple. Having test.tif file (TIF CCITTGr4) using (Bitmap bmp = new Bitmap("test.tif")) { Console.WriteLine(bmp.PixelFormat); }
I've opened it in dotnet/runtime and them have redirected me here. https://github.com/dotnet/runtime/issues/1106
Regards Gustavo
该提问来源于开源项目:mono/libgdiplus
- 点赞
- 回答
- 收藏
- 复制链接分享
4条回答
为你推荐
- 在构造ImagickPixel时设置alpha通道
- imagemagick
- alpha
- php
- imagick
- 2个回答
- PHP GD编辑Jpeg而无需重新压缩
- image
- jpeg
- php
- gd
- 1个回答
- 高德地图当前定位失败Geolocation permission denied
- javascript
- 2个回答
- 为何Append不直接由SetPixel代替?
- 开发语言
- 1个回答
- 将图像加载到 Bitmap 对象时出现内存不足的问题
- bitmap
- android
- image
- out-of-memory
- 30个回答
换一换