--- title: "How to: Create a new BitmapSource" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "creating new BitmapSource objects [WPF]" - "BitmapSource objects [WPF], creating" ms.assetid: 0adf447e-014f-4ceb-97b2-f21affe6d55b --- # How to: Create a new BitmapSource This example demonstrates how to use the method of to create a new object. ## Example [!code-csharp[ImagingSnippetGallery_procedural_snip#BitmapSourceCreate](~/samples/snippets/csharp/VS_Snippets_Wpf/ImagingSnippetGallery_procedural_snip/CSharp/BitmapSourceExample.cs#bitmapsourcecreate)] [!code-vb[ImagingSnippetGallery_procedural_snip#BitmapSourceCreate](~/samples/snippets/visualbasic/VS_Snippets_Wpf/ImagingSnippetGallery_procedural_snip/VB/BitmapSourceExample.vb#bitmapsourcecreate)] ## See also - [Imaging Overview](imaging-overview.md)