ExportJpeg Method
Description
Exports the current view to a JPEG file.
Syntax
Visual Basic |
---|
Public Function ExportJpeg( _ ByVal filename As String, _ ByVal w As Long, _ ByVal h As Long _ ) As Integer |
Parameters
- filename
- The name of the exported file.
- w
- The width of the bitmap, in pixels.
- h
- The height of the bitmap, in pixels.
Remarks
Note: To set image quality use setInt(SIS_OT_SYSTEM, 0, "_JpegQuality&",...) before using this API.
The ... is an integer in the range "0" to "100". It is recommended that a maximum value of "95" is used.
Using "100" will create a file two or three times as large as "95" but with hardly any improvement in quality. If you wish to create a very small file, perhaps for preview or indexing purposes and are prepared to tolerate large defects a value in the range "5" to "10" may be acceptable.
Size limits for the exported JPEG are 64k x 64k pixel size; 2GB file size.
Available: D OD OM SISpy
Groups:
Example
sis.ExportJpeg ("c:\data\planning.jpg", 1024, 1024)