다음을 통해 공유


PngInterlaceOption 열거형

정의

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

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

필드

Name Description
Default 0

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

On 1

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

Off 2

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

예제

다음 예제에서는 클래스의 속성을 사용 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를 볼 때 한 필드의 선이 먼저 표시되고 두 번째 필드의 선이 표시됩니다.

적용 대상

추가 정보