![Read Read](/uploads/1/2/5/6/125647099/314963671.png)
Here is a sample that I use to make image files, Just change it to save in PNG. This might help in your search. Imports System.IO Imports System.Drawing.Imaging Imports System.Drawing.Drawing2D Public Class frmMakeImageFile Inherits System.Windows.Forms.Form Private sFileName As String Private imgFile As Image #Region ' Windows Form Designer generated code ' Public Sub New MyBase.New 'This call is required by the Windows Form Designer. InitializeComponent 'Add any initialization after the InitializeComponent call End Sub 'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose End If End If MyBase.Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.ICon tainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor.
What is the difference between BMP and JPG? Update Cancel. A d b y M a n a g e E n g i n e A D S o l u t i o n s. File server change auditing tool. Free trial available. For these type of images, lossless compression such as PNG is the preferred format. However, PNG does not compress as well as JPEG.