Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-encode-and-decode-a-tiff-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 TIFF Image Learn how to Encode and Decode a TIFF image. 03/30/2017 devdivchpfy22
csharp
vb
cpp
TIFF encoding [WPF]
encoding TIFF images [WPF]
encoding image formats [WPF]
decoding TIFF images [WPF]
decoding image formats [WPF]
TIFF decoding [WPF]
1dfe3209-fc73-40e6-ad1c-71c1c58b3364

How to: Encode and Decode a TIFF Image

The following examples show how to decode and encode a Tagged Image File Format (TIFF) image using the specific xref:System.Windows.Media.Imaging.TiffBitmapDecoder and xref:System.Windows.Media.Imaging.TiffBitmapEncoder objects.

Decode a TIFF image

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

[!code-cppTiffBitmapDecoderEncoder#1] [!code-csharpTiffBitmapDecoderEncoder#1] [!code-vbTiffBitmapDecoderEncoder#1]

Encode a TIFF image

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

[!code-cppTiffBitmapDecoderEncoder#4] [!code-csharpTiffBitmapDecoderEncoder#4] [!code-vbTiffBitmapDecoderEncoder#4]

See also