PngBitmapEncoder.Interlace Özellik

Tanım

Taşınabilir Ağ Grafikleri (PNG) bit eşleminin kesişip kesişmeyeceğini belirten bir değer alır veya ayarlar.

public:
 property System::Windows::Media::Imaging::PngInterlaceOption Interlace { System::Windows::Media::Imaging::PngInterlaceOption get(); void set(System::Windows::Media::Imaging::PngInterlaceOption value); };
public System.Windows.Media.Imaging.PngInterlaceOption Interlace { get; set; }
member this.Interlace : System.Windows.Media.Imaging.PngInterlaceOption with get, set
Public Property Interlace As PngInterlaceOption

Özellik Değeri

PngInterlaceOption

Değerlerden Interlace biri. Varsayılan değer: Default.

Örnekler

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

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

Araya ekleme, 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