--- title: "How to: Draw an Existing Bitmap to the Screen" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "bitmaps [Windows Forms], displaying in Windows Forms" - "bitmaps [Windows Forms], loading in Windows Forms applications" - "images [Windows Forms], displaying on Windows Forms" ms.assetid: 5bc558d7-b326-4050-a834-b8600da0de95 --- # How to: Draw an Existing Bitmap to the Screen You can easily draw an existing image on the screen. First you need to create a object by using the bitmap constructor that takes a file name, . This constructor accepts images with several different file formats, including BMP, GIF, JPEG, PNG, and TIFF. After you have created the object, pass that object to the method of a object. ## Example This example creates a object from a JPEG file and then draws the bitmap with its upper-left corner at (60, 10). The following illustration shows the bitmap drawn at the specified location: ![Screenshot that shows an image at a specified position.](./media/how-to-draw-an-existing-bitmap-to-the-screen/bitmap-specified-position.png) [!code-csharp[System.Drawing.WorkingWithImages#21](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Drawing.WorkingWithImages/CS/Class1.cs#21)] [!code-vb[System.Drawing.WorkingWithImages#21](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.WorkingWithImages/VB/Class1.vb#21)] ## Compiling the Code The preceding example is designed for use with Windows Forms, and it requires `e`, which is a parameter of the event handler. ## See also - [Graphics and Drawing in Windows Forms](graphics-and-drawing-in-windows-forms.md) - [Working with Images, Bitmaps, Icons, and Metafiles](working-with-images-bitmaps-icons-and-metafiles.md)