回复 1楼wjy72的帖子
保存 CCITT G4-2D 格式文件请参考附件demo:
关键代码:
- codecs.Options.Save.UseImageDitheringMethod = true;
- this.rasterImageViewer1.Image.DitheringMethod = RasterDitheringMethod.FloydStein;
- // Save the image as 1-bpp with auto-dithering:
- codecs.Save(this.rasterImageViewer1.Image, "..\\..\\test.tiff", RasterImageFormat.CcittGroup4, 1);
复制代码 |