Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-encode-and-decode-a-wdp-image.md
T
Pooja PoojariandAndy De George 6d665a13bd US-1889327: Updated H2 headings. (#1323)
* Updated H2 headings for US-1889327.

* Review edits.

* Apply suggestions from code review

Co-authored-by: Andy (Steve) De George <[email protected]>
2022-03-04 18:48:05 +00:00

2.0 KiB

title, description, ms.date, ms.custom, dev_langs, helpviewer_keywords, ms.assetid
title description ms.date ms.custom dev_langs helpviewer_keywords ms.assetid
How to: Encode and Decode a WDP Image Learn how to Encode and Decode a WDP image. 03/30/2017 devdivchpfy22
csharp
vb
cpp
WDP encoding [WPF]
WDP decoding [WPF]
encoding image formats [WPF]
decoding WDP images [WPF]
decoding image formats [WPF]
encoding WDP images [WPF]
911777d1-516b-49db-a87b-b54e31b18532

How to: Encode and Decode a WDP Image

The following examples show how to decode and encode a Microsoft Windows Media Photo image using the specific xref:System.Windows.Media.Imaging.WmpBitmapDecoder and xref:System.Windows.Media.Imaging.WmpBitmapEncoder objects.

Decode a Windows Media Photo image

This example demonstrates how to decode a Windows Media Photo image using a xref:System.Windows.Media.Imaging.WmpBitmapDecoder from a xref:System.Uri.

[!code-cppWdpBitmapDecoderEncoder#1] [!code-csharpWdpBitmapDecoderEncoder#1] [!code-vbWdpBitmapDecoderEncoder#1]

Encode a Windows Media Photo image

This example demonstrates how to encode a xref:System.Windows.Media.Imaging.BitmapSource into a Windows Media Photo image using a xref:System.Windows.Media.Imaging.WmpBitmapEncoder.

[!code-cppWdpBitmapDecoderEncoder#4] [!code-csharpWdpBitmapDecoderEncoder#4] [!code-vbWdpBitmapDecoderEncoder#4]

See also