Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Image
Image.Image

Method Image.Image()->change_color()


Method change_color

object change_color(int tor, int tog, int tob)
object change_color(int fromr, int fromg, int fromb, object inttor, int tog, int tob)

Description

Changes one color (exakt match) to another. If non-exakt-match is preferred, check distancesq and paste_alpha_color .

Parameter tor
Parameter tog
Parameter tob

destination color and next current color

Parameter fromr
Parameter fromg
Parameter fromb

source color, default is current color

Returns

a new (the destination) image object