Dim im
Dim width, height, str
width = 350
height = 70
str = "Shadow Text"
Set im = CreateObject("ActiveImage.Images.1")
im.CreateImage width, height
im.SetImageType 1
im.CreateImage width, height
im.SetColor 255,255,0
im.DrawFilledRectangle 0,0,width, height
im.SetFontPathTTFAuto
im.SetFontSizeTTF 38
im.SetFontTTF "tahomabd"
'Set the text color
im.SetColor 20,20,150
im.DrawTextTTF 4,48,str
im.SetColor 255,255,230
im.DrawTextTTF 6,45,str
im.WriteToFile "C:\AI\shadow.jpg"
im.DestroyImage
Set im = Nothing
|