Image Viewer CP Pro SDK ActiveX

Image Viewer CP Pro SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

It is a PDF Viewer and Document Viewer SDK , Export to PDF ,Image processing, 1D and 2D Barcode Reader, Writer, DICOM and OCR with C#, C++, VB.NET , VB, Delphi, Vfp, MS Access.

Popular Solution Go   Back

VB.NET - How to resize image in VB.Net Sample

Step 1: Download Image Viewer CP Pro ActiveX setup disk and installed it.

Step 2: Create New Visual Basic Project, select Windows Application.

Step 3: Add a buttons into the form.

Step 4: Add following code in buttons click event. You need change the correct path of your image file  in FileName property.

This sample code save to jpeg file, 320x240 resolution.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

AxImageViewer1.FileName = "c:\yourimage.jpg"
AxImageViewer1.SaveBySize "c:\newfile", "jpg",320,240

End Sub