C PWL
C PWL

Reputation: 519

Generate .jpg by using vb.net

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?

Upvotes: 0

Views: 2446

Answers (2)

user978122
user978122

Reputation: 5761

You may want to view this tutorial: http://www.vb-helper.com/howto_net_drawing_framework.html

Upvotes: 0

shenles
shenles

Reputation: 582

Looks like you can directly save a Bitmap object as a jpg.

Dim bm As Bitmap

bm.Save("test.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)

Upvotes: 2

Related Questions