PrintToJPG
MethodPrintToJPG (Method)
Exports the drawing into a JPG file
Syntax:
Function PrintToJPG(sJPGFile As String, lWidth As Integer, lHeight As Integer, fSelected As Boolean, xMin As Single, yMin As Single, xMax As Single, yMax As Single, sScale As Single) As Boolean
The PrintToJPG method syntax consists of the following:
Parameter |
Data Type |
Description |
sJPGFile |
String |
The name of the JPG file |
lWidth |
Integer |
The width of the JPG image |
lHeight |
Integer |
The height of the JPG image |
fSelected |
Boolean |
True when o.nly the selected objects are printed into the JPG file |
xMin |
Single |
The x coordinate of the bottom-left drawing extents that will be printed |
yMin |
Single |
The y coordinate of the bottom-left drawing extents that will be printed |
xMax |
Single |
The x coordinate of the top-right drawing extents that will be printed |
yMax |
Single |
The y coordinate of the top-right drawing extents that will be printed |
sScale |
Single |
The scale of the objects |
Return value:
Boolean - True on success, false on error.
Remarks:
If all the xMin, yMin, xMax, yMax are zero, then the whole drawing will be printed