Re: Create a 'disabled' image effect (similar to how Windows shows disabled images)

Edward Cannon <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
try using the Image.convert("L") method on you image. That will make
it greyscale
Edward Cannon

On Wed, Dec 1, 2010 at 6:38 AM,  <[email protected]> wrote:
> Any suggestions on a PIL receipe that will allow me to take a color image
> and create a grayscale version of this image that gives the image a disabled
> appearance similar to the effect that Windows applies to show disabled
> icons?
>
> My use case is to dynamically create disabled versions of my application's
> graphics when a specific feature is disabled or unavailable.
>
> Thank you,
> Malcolm
> _______________________________________________
> Image-SIG maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/image-sig
>
>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.