mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 23:43:39 +02:00
* 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
1.3 KiB
1.3 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| How to: Convert a BitmapSource to a Different PixelFormat | 03/30/2017 |
|
|
cd9df1e4-d5dc-4f57-b67b-4ec67e086b33 |
How to: Convert a BitmapSource to a Different PixelFormat
This example demonstrates how to convert a xref:System.Windows.Media.Imaging.BitmapSource object (xref:System.Windows.Media.Imaging.BitmapImage) to a different xref:System.Windows.Media.PixelFormat using a xref:System.Windows.Media.Imaging.FormatConvertedBitmap.
Example
[!code-csharpImagingSnippetGallery_procedural_snip#PixelFormatConversion] [!code-vbImagingSnippetGallery_procedural_snip#PixelFormatConversion]