help with VB text to gif conversion
Posted: 2007-11-06T03:42:00-07:00
hi there, have almost got this working great but for some reason i cant seem to get the height
example i have some text "this is some text" loaded in font with -pointsize 55
what i get is an image of about 10px high so only see top of the words, i cant use -size as the width can not be set and needs to be random to the lengh of the text string
here is my code
the functions setFont just swapps the space within a font name to a - and cleantext changes vbCrlf into \n
also i must note that this is on a loop, so it creates like 4-10 images
thanks very much
dave
example i have some text "this is some text" loaded in font with -pointsize 55
what i get is an image of about 10px high so only see top of the words, i cant use -size as the width can not be set and needs to be random to the lengh of the text string
here is my code
Code: Select all
msgs = img.convert("-background", "transparent", "-font", setFont(rsTemp("fontF")), "-gravity", gravity, "-pointsize", Int(rsTemp("fontSize")), "label:"&cleantext(rsTemp("textused"))&"", "D:\path\temp\"&filename&".gif")
also i must note that this is on a loop, so it creates like 4-10 images
thanks very much
dave