PngInterlaceOption Sabit listesi

Tanım

Kodlama sırasında Taşınabilir Ağ Grafikleri (PNG) biçimli görüntünün araya alınıp alınmayacağını belirtir.

public enum class PngInterlaceOption
public enum PngInterlaceOption
type PngInterlaceOption = 
Public Enum PngInterlaceOption
Devralma
PngInterlaceOption

Alanlar

Name Değer Description
Default 0

, PngBitmapEncoder görüntünün araya alınıp alınmayacağını belirler.

On 1

Sonuçta elde edilen bit eşlem görüntüsü aralanır.

Off 2

Sonuçta elde edilen bit eşlem görüntüsü araya alınmaz.

Örnekler

Aşağıdaki örnekte sınıfının özelliğinin Interlace nasıl kullanılacağı gösterilmektedir PngBitmapEncoder .

FileStream^ stream = gcnew FileStream("new.png", FileMode::Create);
PngBitmapEncoder^ encoder = gcnew PngBitmapEncoder();
TextBlock^ myTextBlock = gcnew TextBlock();
myTextBlock->Text = "Codec Author is: " + encoder->CodecInfo->Author->ToString();
encoder->Interlace = PngInterlaceOption::On;
encoder->Frames->Add(BitmapFrame::Create(image));
encoder->Save(stream);
FileStream stream = new FileStream("new.png", FileMode.Create);
PngBitmapEncoder encoder = new PngBitmapEncoder();
TextBlock myTextBlock = new TextBlock();
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString();
encoder.Interlace = PngInterlaceOption.On;
encoder.Frames.Add(BitmapFrame.Create(image));
encoder.Save(stream);
Dim stream As New FileStream("new.png", FileMode.Create)
Dim encoder As New PngBitmapEncoder()
Dim myTextBlock As New TextBlock()
myTextBlock.Text = "Codec Author is: " + encoder.CodecInfo.Author.ToString()
encoder.Interlace = PngInterlaceOption.On
encoder.Frames.Add(BitmapFrame.Create(image))
encoder.Save(stream)

Açıklamalar

Ara oluşturma, png çerçevesini iki alanda görüntüleme işlemini ifade eder. Bir alan çerçevenin çift çizgilerini, diğer alan ise çerçevenin tek satırlarını içerir. PNG görüntülendiğinde, önce bir alandaki satırlar, ardından ikinci alandaki satırlar görüntülenir.

Şunlara uygulanır

Ayrıca bkz.