PngBitmapEncoder.Interlace 속성

정의

PNG(이식 가능한 네트워크 그래픽) 비트맵이 인터레이스해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

PngInterlaceOption

Interlace 값 중 하나입니다. 기본값은 Default입니다.

예제

다음 예제에서는 사용 하는 방법에 설명 합니다 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)

설명

인터레이싱은 두 필드에 PNG 프레임을 표시하는 프로세스를 나타냅니다. 한 필드에는 프레임의 짝수 선이 포함되고 다른 필드에는 프레임의 홀수 선이 포함됩니다. PNG를 볼 때 한 필드의 선이 먼저 표시되고 두 번째 필드의 선이 표시됩니다.

적용 대상