TiffCompressOption 열거형

정의

TIFF(Tagged Image File Format) 비트맵 이미지에 사용 가능한 압축 체계를 지정합니다.

public enum class TiffCompressOption
public enum TiffCompressOption
type TiffCompressOption = 
Public Enum TiffCompressOption
상속
TiffCompressOption

필드

Ccitt3 2

CCITT3 압축 체계가 사용됩니다.

Ccitt4 3

CCITT4 압축 체계가 사용됩니다.

Default 0

TiffBitmapEncoder 인코더는 가능한 최상의 압축 체계로 비트맵을 저장하려고 합니다.

Lzw 4

LZW 압축 체계가 사용됩니다.

None 1

TIFF(태그가 지정된 이미지 파일 형식) 이미지는 압축되지 않습니다.

Rle 5

RLE 압축 체계가 사용됩니다.

Zip 6

Zip 압축 체계가 사용됩니다.

예제

다음 예제에서는 사용 하는 방법에 설명 합니다 Compression 속성입니다.

FileStream^ stream = gcnew FileStream("new.tif", FileMode::Create);
TiffBitmapEncoder^ encoder = gcnew TiffBitmapEncoder();
TextBlock^ myTextBlock = gcnew TextBlock();
myTextBlock->Text = "Codec Author is: " + encoder->CodecInfo->Author->ToString();
encoder->Compression = TiffCompressOption::Zip;
encoder->Frames->Add(BitmapFrame::Create(image));
encoder->Save(stream);
var stream = new FileStream("new.tif", FileMode.Create);
var encoder = new TiffBitmapEncoder();
var myTextBlock = new TextBlock();
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString();
encoder.Compression = TiffCompressOption.Zip;
encoder.Frames.Add(BitmapFrame.Create(image));
encoder.Save(stream);
Dim stream As New FileStream("new.tif", FileMode.Create)
Dim encoder As New TiffBitmapEncoder()
Dim myTextBlock As New TextBlock()
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString()
encoder.Compression = TiffCompressOption.Zip
encoder.Frames.Add(BitmapFrame.Create(image))
encoder.Save(stream)

설명

Ccitt3, Ccitt4, 및 Rle 해야 합니다 PixelFormat 값으로 설정 BlackWhite합니다. 설정 된 PixelFormat 다른 값으로 다시 설정 합니다 Compression 기본 속성 값입니다.

적용 대상

추가 정보