I would like to generate a .jpg file by using vb.net desktop application. 
Example: the program will paint a simple rectangle with grey color, and produce as a physical image file (.jpg)

Any sample coding?