Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-encode-and-decode-a-tiff-image.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.9 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Encode and Decode a TIFF Image 03/30/2017
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.

Example

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]

Example

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