PngInterlaceOption 열거형

정의

인코딩 중 PNG(이동식 네트워크 그래픽) 형식 이미지가 인터레이스되는지 여부를 지정합니다.

public enum class PngInterlaceOption
public enum PngInterlaceOption
type PngInterlaceOption = 
Public Enum PngInterlaceOption
상속
PngInterlaceOption

필드

Default 0

PngBitmapEncoder는 이미지를 인터레이스해야 하는지 여부를 결정합니다.

Off 2

결과 비트맵 이미지가 인터레이스되지 않습니다.

On 1

결과 비트맵 이미지가 인터레이스됩니다.

예제

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

설명

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

적용 대상

추가 정보