It's a b......r to find,and I cant find the source
My version is ImageMagick-6.6.8-Q16 though your link appears to be to a later
vesion I tried ImageMagick-6.6.9-Q16 and that didn't work
I was using it to display an image of a boat, with the name of the boat and
label with the owner's name and had a lot of overlaps, hence the need for
transparent images.
Sample of code follows to create a boat
Function CreateBoatImage()
Dim IMCmd As String
Dim ImFileOut As String
Dim sGO As String
Dim ImagePath As String, StoragePath As String, PicPath As String
ImagePath = Elookup("ExcelPath", "QCoinfoPaths")
StoragePath = Elookup("StorageFolder", "QCoinfoPaths")
' First 2 numbers are X & Y centres
' Second 2 numbers are width and length
' Third 2 numbers are how far round in degrees.
IMCmd = ImagePath
IMCmd MCmd = IMCmd & "convert -size 200x200 xc:none -stroke black
-strokewidth 1 -fill transparent " IMCmd = IMCmd & " -draw " & Chr$(34) &
"ellipse 80,30 40,20 20,90" & Chr$(34) & " " IMCmd = IMCmd & " -draw " &
Chr$(34) & "ellipse 80,43 40,-20 20,90" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,26 80,23" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,47 80,50" & Chr$(34) & " " IMCmd = IMCmd & "
-draw " & Chr$(34) & "line 30,26 30,47" & Chr$(34) & " " IMCmd = IMCmd & "
-rotate -90 " IMCmd = IMCmd & "-background transparent -trim +repage "
ChDir hDir (StoragePath) ' Imagemagick does not understand paths
ImFileOut = "MasterBoat.Png"
If Dir(ImFileOut) > "" Then
Kill ImFileOut
End If
sGO = IMCmd & ImFileOut
If ShellWait(sGO, vbHide) = 1 Then
PicPath = StoragePath & "\" & ImFileOut
Else
MsgBox "Error ???"
End If
End Function
Phil