PIL and font colour.

Steve Holden steve at holdenweb.com
Thu Apr 26 07:55:54 EDT 2007


python at hope.cz wrote:
> Steve
>  Thank you for your reply.
>  
>  Is there a way how to find out a complementary colour for an area where I will write the text, so 
>  that the text will be seen clearly?Is there a routine in PIL or in Python somewhere?
>  Thank you for help
>  
>  Lad.
>  
I see that you had an answer to this question on the PIL list, so I will 
merely note that it's difficult if the background color turns out close 
to mid-gray, or if it's very variable. In general this is a hard 
problem. Are you sure it wouldn't be easier to just put a colored strip 
behind the text and in front of the image?

regards
  Steve
-- 
Steve Holden       +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Recent Ramblings       http://holdenweb.blogspot.com




More information about the Python-list mailing list