PIL and font colour

Johny python at hope.cz
Tue Apr 24 21:09:54 CEST 2007


I use PIL to write some text to a picture.The text must  be seen wery
clearly.
I write the text to different pictures but to the same position. As
pictures maybe  different, colour, in the position where I write the
text, is also different.
Is there a way how to set the font colour so that it will be seen very
clearly in the picture?
For example, if the picture is bright ( for example yellow), the font
colour should be dark( e.g. black) and vice versa.
Can anyone help?
Thanks
L.




More information about the Python-list mailing list