--- title: "How to: Apply a Transform to a BitmapImage" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "bitmap images [WPF]" - "Transforms [WPF]" ms.assetid: 5c042f8d-d569-45e4-ab32-868b89759bf2 --- # How to: Apply a Transform to a BitmapImage This example demonstrates how to apply a to a . ## Example [!code-csharp[ImagingSnippetGallery_procedural_snip#TransformedBitmapInline1](~/samples/snippets/csharp/VS_Snippets_Wpf/ImagingSnippetGallery_procedural_snip/CSharp/TransformedBitmapExample.cs#transformedbitmapinline1)] [!code-vb[ImagingSnippetGallery_procedural_snip#TransformedBitmapInline1](~/samples/snippets/visualbasic/VS_Snippets_Wpf/ImagingSnippetGallery_procedural_snip/VB/TransformedBitmapExample.vb#transformedbitmapinline1)] ## See also - - [Imaging Overview](imaging-overview.md) - [Rotate an Image](../controls/how-to-rotate-an-image.md)