ImagePalette
index
/Library/Python/2.7/site-packages/PIL/ImagePalette.py

# The Python Imaging Library.
# $Id$
#
# image palette object
#
# History:
# 1996-03-11 fl   Rewritten.
# 1997-01-03 fl   Up and running.
# 1997-08-23 fl   Added load hack
# 2001-04-16 fl   Fixed randint shadow bug in random()
#
# Copyright (c) 1997-2001 by Secret Labs AB
# Copyright (c) 1996-1997 by Fredrik Lundh
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
Image
ImageColor
array

 
Classes
       
ImagePalette

 
class ImagePalette
    Colour palette for palette mapped images
 
  Methods defined here:
__init__(self, mode='RGB', palette=None)
getcolor(self, color)
getdata(self)
save(self, fp)
tostring(self)

 
Functions
       
load(filename)
negative(mode='RGB')
new(mode, data)
random(mode='RGB')
raw(rawmode, data)
sepia(white='#fff0c0')
wedge(mode='RGB')