Examples

The following code example is designed for use with Windows Forms and requires a PaintEventArgs object. The PaintEventArgs object is named e and is a parameter of the Paint event handler. The code performs the following actions:

Creates an image from a JPEG file. The file is named SampImag.jpg and is located in the folder of the example.