I am try to run this following function which supposedly add phrase or text in to the image. The image and phrase are passed as arguments in to the function.
Note that i cannot use an other image functions other than getpixel, putpixel, load and save as per the assignment (i am very new to python, open to suggestions or help).
def InsertTxtImage(srcImage, phrase):
pix = srcImage.load()
for index,value in enumerate(phrase):
pix[10+index,15] = phrase[index]
srcImage.save()
pass
This code is giving "system error" which says that "new style getargs format but argument is not tuple"
Note that i cannot use an other image functions other than getpixel, putpixel, load and save as per the assignment (i am very new to python, open to suggestions or help).
def InsertTxtImage(srcImage, phrase):
pix = srcImage.load()
for index,value in enumerate(phrase):
pix[10+index,15] = phrase[index]
srcImage.save()
pass
This code is giving "system error" which says that "new style getargs format but argument is not tuple"