PngBitmapEncoder Class
Defines an encoder that is used to encode Portable Network Graphics (PNG) format images.
Assembly: PresentationCore (in PresentationCore.dll)
System.Windows.Threading::DispatcherObject
System.Windows.Media.Imaging::BitmapEncoder
System.Windows.Media.Imaging::PngBitmapEncoder
| Name | Description | |
|---|---|---|
![]() | PngBitmapEncoder() | Initializes a new instance of the PngBitmapEncoder class. |
| Name | Description | |
|---|---|---|
![]() | CodecInfo | Gets information that describes this codec. (Inherited from BitmapEncoder.) |
![]() | ColorContexts | Gets or sets a value that represents the color profile that is associated with this encoder.(Inherited from BitmapEncoder.) |
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) |
![]() | Frames | Gets or sets the individual frames within an image.(Inherited from BitmapEncoder.) |
![]() | Interlace | Gets or sets a value that indicates whether the Portable Network Graphics (PNG) bitmap should interlace. |
![]() | Metadata | Gets or sets the metadata that will be associated with this bitmap during encoding.(Inherited from BitmapEncoder.) |
![]() | Palette | Gets or sets a value that represents the BitmapPalette of an encoded bitmap. (Inherited from BitmapEncoder.) |
![]() | Preview | Gets or sets a BitmapSource that represents the global preview of a bitmap, if there is one. (Inherited from BitmapEncoder.) |
![]() | Thumbnail | Gets or sets a BitmapSource that represents the global embedded thumbnail.(Inherited from BitmapEncoder.) |
| Name | Description | |
|---|---|---|
![]() | CheckAccess() | Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | Save(Stream^) | Encodes a bitmap image to a specified Stream.(Inherited from BitmapEncoder.) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | VerifyAccess() | Enforces that the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.) |
Portable Network Graphics (PNG) format bitmaps support frame level metadata. They do not support preview, global thumbnails, frame level thumbnails, global metadata, or multiple frames.
Encoding does not work in partial trust. See WPF Partial Trust Security for information on partial trust.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

