Enum TiffCompression
Enum TiffCompression
이름 공간 : Aspose.Note.Saving 모임: Aspose.Note.dll (25.4.0)
TIFF 형식으로 문서를 저장할 때 사용해야 할 압축 유형을 지정합니다.
public enum TiffCompression
Fields
Ccitt3 = 3
CCITT 그룹 3 팩스 코딩을 지정합니다.
Ccitt4 = 4
CCITT 그룹 4 팩스 코딩을 지정합니다.
Jpeg = 7
JPEG DCT 압축을 지정합니다.
Lzw = 5
LZW 압축을 지정합니다.
None = 1
압축을 지정하지 않습니다.
PackBits = 32773
Macintosh RLE 압축을 정의합니다.
Rle = 2
RLE 압축을 정의합니다.
Examples
PackBits 압축을 사용하여 Tiff 형식의 이미지로 문서를 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingPackBitsCompression.tiff");
// Save the document.
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
TiffCompression = TiffCompression.PackBits
});
Jpeg 압축을 사용하여 Tiff 형식의 이미지로 문서를 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingJpegCompression.tiff");
// Save the document.
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
TiffCompression = TiffCompression.Jpeg,
Quality = 93
});
CCITT 그룹 3 팩스 압축을 사용하여 Tiff 형식의 이미지로 문서를 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "Aspose.one"));
var dst = Path.Combine(dataDir, "SaveToTiffUsingCcitt3Compression.tiff");
// Save the document.
oneFile.Save(dst, new ImageSaveOptions(SaveFormat.Tiff)
{
ColorMode = ColorMode.BlackAndWhite,
TiffCompression = TiffCompression.Ccitt3
});