|
I understand from your code that you want to save as 8-bit
(grayscale or color) TIF. However, using the RasterImageFormat.Tif file type
saves images as TIF without compression.
To save as compressed 8-bit TIF, then you can use any of
these constants:
1. TifLzw (LZW Compression and RGB color space)
2. TifJpeg (JPEG compression and YUV 4:4:4 color space
Lossless)
3. TifJpeg422 (JPEG compression and YUV 4:2:2 color space)
4. TifJpeg411 (JPEG compression and YUV 4:1:1 color space)
5. TifCmp (CMP Compression)
6. TifJbig (JBIG Compression)
7. TifJ2k (JPEG 2000 Compression)
8. TifCmw (Wavelet CMP Compression)
There are also other compressed TIFF sub-types but they work
with bits per pixel values other than 8.
For more details, please read the help topic "File
Formats: TIFF (Tagged Image File Format)" in the Raster .NET help file.
Yasir Alani LEADTOOLS Technical Support support@leadtools.com
|