TiffBitmapEncoder TiffBitmapEncoder TiffBitmapEncoder Constructor

定義

TiffBitmapEncoder クラスの新しいインスタンスを初期化します。Initializes a new instance of the TiffBitmapEncoder class.

public:
 TiffBitmapEncoder();
[System.Security.SecurityCritical]
public TiffBitmapEncoder ();
Public Sub New ()

次の例は、をTiffBitmapEncoder初期化して新しいビットマップイメージをエンコードする方法を示しています。The following example demonstrates how to initialize a TiffBitmapEncoder to encode a new bitmap image.

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)

適用対象