EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

PNG Format Overview

This topic provides information about the native PNG codec available through the Windows Imaging Component (WIC).

Codec Identity

The following table provides codec identification information.

Formal Name(s)Portable Network Graphics (PNG)
File Name Extension(s)png
MIME typeimage/png
Specification SupportPNG Specification 1.2

 

The following table lists the GUIDs used to identify the native PNG codec components.

ComponentFriendly NameGUID
Container FormatGUID_ContainerFormatPng1b7cfaf4-713f-473c-bbcd6137425faeaf
DecoderCLSID_WICPngDecoder389ea17b-5078-4cde-b6ef25c15175c751
EncoderCLSID_WICPngEncoder27949969-876a-41d7-9447568f6a35a4dc

 

Windows 8 and later

Starting with Windows 8 WIC provides an additional PNG decoder

Encoding

The WIC encoding API are designed to be codec-independent and image encoding for WIC-enabled codecs is essentially the same. For more information about image encoding using the WIC API, see the Encoding Overview.

Encoder Options

WIC-enabled codecs differ at the encoding option level. Encoder options reflect the capabilities of an image encoder and each native codec supports a set of these encoder options. Encoder options can be basic WIC supported options available to all WIC enabled codes (though not necessarily supported) or codec-specific options designed by the image format codec. To manage these encoding options during the encoding process, WIC uses the IPropertyBag2 interface . For more information about using the IPropertyBag2 interface for WIC encoding , see the Encoding Overview.

The PNG codec uses basic WIC encoder options. The following table lists the WIC encoder options supported by the native PNG codec.

Property NameVARTYPEValue RangeDefault Value
InterlaceOptionVT_BOOLTRUE/FALSEFALSE
FilterOptionVT_UI1 WICPngFilterOption WICPngFilterUnspecified

 

If an encoder option is present in the IPropertyBag2 option list that the codec does not support, it is ignored.

InterlaceOption

Specifies whether to encode the image data as interlaced.

The default value is FALSE.

FilterOption

Specifies the filter option to use for image compression.

The default value is WICPngFilterUnspecified.

Decoding

The WIC decoding API are designed to be codec-independent and image decoding for WIC-enabled codecs is essentially the same. For more information about image decoding, see the Decoding Overview. For more information about using decoded image data, see the Bitmap Sources Overview.

The native PNG codec also supports the IWICBitmapSourceTransform on frame decoding adding advanced options for decoding an image stream. For more information about these advanced options, see the Bitmap Sources Overview.

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft