TiffCompressOption TiffCompressOption TiffCompressOption TiffCompressOption Enum

定義

Tagged Image File Format (TIFF) ビットマップ イメージに可能な圧縮スキームを指定します。Specifies the possible compression schemes for Tagged Image File Format (TIFF) bitmap images.

public enum class TiffCompressOption
public enum TiffCompressOption
type TiffCompressOption = 
Public Enum TiffCompressOption
継承
TiffCompressOptionTiffCompressOptionTiffCompressOptionTiffCompressOption

フィールド

Ccitt3 Ccitt3 Ccitt3 Ccitt3 2

CCITT3 圧縮スキーマが使用されます。The CCITT3 compression schema is used.

Ccitt4 Ccitt4 Ccitt4 Ccitt4 3

CCITT4 圧縮スキーマが使用されます。The CCITT4 compression schema is used.

Default Default Default Default 0

TiffBitmapEncoder エンコーダーは、実行できる最適な圧縮スキーマで、ビットマップを保存しようとしています。The TiffBitmapEncoder encoder attempts to save the bitmap with the best possible compression schema.

Lzw Lzw Lzw Lzw 4

LZW 圧縮スキーマが使用されます。The LZW compression schema is used.

None None None None 1

Tagged Image File Format (TIFF)Tagged Image File Format (TIFF) イメージは圧縮されません。The Tagged Image File Format (TIFF)Tagged Image File Format (TIFF) image is not compressed.

Rle Rle Rle Rle 5

RLE 圧縮スキーマが使用されます。The RLE compression schema is used.

Zip Zip Zip Zip 6

Zip 圧縮スキーマが使用されます。Zip compression schema is used.

次の例では、使用する方法、Compressionプロパティ。The following example demonstrates how to use the Compression property.

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);
FileStream stream = new FileStream("new.tif", FileMode.Create);
TiffBitmapEncoder encoder = new TiffBitmapEncoder();
TextBlock 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します。The Ccitt3, Ccitt4, and Rle require that the PixelFormat value be set to BlackWhite. 設定、PixelFormat他の値にリセット、Compression既定値にプロパティの値。Setting the PixelFormat to any other value resets the Compression property value to Default.

適用対象

こちらもご覧ください