COM Interface (Images)
If a DirectSmile application (from DirectSmile CreatorPro and upwards) is running on your local computer you can easily create personalized images via the COM Interface.
This simple VB-Script example illustrates how easy it is to create JPGs using the COM Interface.
Set P = CreateObject("DirectSmile_ImageAPI.DSMPicture")
P.JPGFileName = "C:\TestImage.jpg"
P.SetName = "\Sets\DSM_Balloons\DSM_Balloons.dSet"
P.WatermarkType = dwmt_None ' Disables Watermark
P.TextInPicture = "Christian"
P.Create
If P.ErrorMsg <> "" Then
MsgBox P.ErrorMsg, vbCritical
Else
MsgBox "Image has been saved under: [" & P.JPGFileName & "]"
End If
Click here to download Sample VBScript
Click here to download Full documentation as PDF
Click here to download Samples in VB6 and VB.NET
