Re: Fastest way to tint an image with PIL

2008-11-07 Thread Marc 'BlackJack' Rintsch
On Thu, 06 Nov 2008 13:08:59 -0800, Dan Moskowitz wrote: > I'm using PIL to tint and composite images together. Here's how I'm > currently tinting images, it's really slow and I know there's got to be > a better way: > > def TintImage( im, tintColor ): > tint = (tintColor[0]/255.0, tintCol

Re: Fastest way to tint an image with PIL

2008-11-07 Thread Peter Otten
Dan Moskowitz wrote: > I'm using PIL to tint and composite images together. Here's how I'm > currently tinting images, it's really slow and I know there's got to > be a better way: > > def TintImage( im, tintColor ): > tint = (tintColor[0]/255.0, tintColor[1]/255.0, tintColor[2]/255.0, > t