<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana size=2>Hello NG,</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>&nbsp;&nbsp;&nbsp; I have a small image that 
looks like a GUI button (with 3D effects given by different pixels colours). The 
current image has as "basic" colour the grey. For "basic", I mean that the 
predominant colour in the image is grey and some other pixels are brighter or 
darker in order to give the 3D effect on that image.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Now my question: is it possible to transform the 
pixels colours in order to have another basic colour (say blue)? In other words, 
the predominant colour will become the blue, with other pixels in a brighter or 
darker blue to give the same 3D effects.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Thanks a lot for every suggestion, and sorry if 
it is a basic question. I just started to learn PIL.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana size=2>Andrea.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT face=Verdana>"Imagination Is The Only Weapon In The War 
Against Reality."<BR></FONT><A href="http://xoomer.virgilio.it/infinity77"><FONT 
face=Verdana>http://xoomer.virgilio.it/infinity77</FONT></A></FONT></DIV></BODY></HTML>