Scanner ActiveX Control

SavebySize

 

Save the current image to other image format and resize the image to specific resolution.

Public Function SaveBySize( _
   ByVal strFileName As String, _
   ByVal strFileType As String _
   ByVal iUserWidth As Integer _
   ByVal iUserHeight As Integer   
) As Integer

 

Parameter

strFileName 
   the new file you want to save.

strFileType
 the Image format you want to save.
 JPG  - JPEG file.
 PNG - PNG file.
 GIF - GIF file.
 EMF - EMF file.
 TIF - TIF file.
 BMP - BMP file.
 PDF - PDF file.
 PSD - PSD file.

iUserWidth
 the user define width of image.

iUserHeight
 the user define height of image.

Return Value

Return 1 - successful
Return 0 - Failed


Example

   

Visual Basic Syntax
Scanner1.SaveBySize "c:\newphoto1", "JPG"  ,100 ,200 'save to JPEG file