ImImagePlugin (version 0.7)
index
/Library/Python/2.7/site-packages/PIL/ImImagePlugin.py

# The Python Imaging Library.
# $Id$
#
# IFUNC IM file handling for PIL
#
# history:
# 1995-09-01 fl   Created.
# 1997-01-03 fl   Save palette images
# 1997-01-08 fl   Added sequence support
# 1997-01-23 fl   Added P and RGB save support
# 1997-05-31 fl   Read floating point images
# 1997-06-22 fl   Save floating point images
# 1997-08-27 fl   Read and save 1-bit images
# 1998-06-25 fl   Added support for RGB+LUT images
# 1998-07-02 fl   Added support for YCC images
# 1998-07-15 fl   Renamed offset attribute to avoid name clash
# 1998-12-29 fl   Added I;16 support
# 2001-02-17 fl   Use 're' instead of 'regex' (Python 2.1) (0.7)
# 2003-09-26 fl   Added LA/PA support
#
# Copyright (c) 1997-2003 by Secret Labs AB.
# Copyright (c) 1995-2001 by Fredrik Lundh.
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
Image
ImageFile
ImagePalette
re
string

 
Classes
       
ImageFile.ImageFile(Image.Image)
ImImageFile

 
class ImImageFile(ImageFile.ImageFile)
    
Method resolution order:
ImImageFile
ImageFile.ImageFile
Image.Image

Methods defined here:
seek(self, frame)
tell(self)

Data and other attributes defined here:
format = 'IM'
format_description = 'IFUNC Image Memory'

Methods inherited from ImageFile.ImageFile:
__init__(self, fp=None, filename=None)
draft(self, mode, size)
Set draft mode
load(self)
Load image data based on tile list
load_end(self)
load_prepare(self)
verify(self)
Check file integrity

Methods inherited from Image.Image:
__getattr__(self, name)
__repr__(self)
convert(self, mode=None, data=None, dither=None, palette=0, colors=256)
Convert to other pixel format
copy(self)
Copy raster data
crop(self, box=None)
Crop region from image
filter(self, filter)
Apply environment filter to image
fromstring(self, data, decoder_name='raw', *args)
Load data to image from binary string
getbands(self)
Get band names
getbbox(self)
Get bounding box of actual data (non-zero pixels) in image
getcolors(self, maxcolors=256)
Get colors from image, up to given limit
getdata(self, band=None)
Get image data as sequence object.
getextrema(self)
Get min/max value
getim(self)
Get PyCObject pointer to internal image memory
getpalette(self)
Get palette contents.
getpixel(self, xy)
Get pixel value
getprojection(self)
Get projection to x and y axes
histogram(self, mask=None, extrema=None)
Take histogram of image
offset(self, xoffset, yoffset=None)
(deprecated) Offset image in horizontal and/or vertical direction
paste(self, im, box=None, mask=None)
Paste other image into region
point(self, lut, mode=None)
Map image through lookup table
putalpha(self, alpha)
Set alpha layer
putdata(self, data, scale=1.0, offset=0.0)
Put data from a sequence object into an image.
putpalette(self, data, rawmode='RGB')
Put palette data into an image.
putpixel(self, xy, value)
Set pixel value
quantize(self, colors=256, method=0, kmeans=0, palette=None)
resize(self, size, resample=0)
Resize image
rotate(self, angle, resample=0, expand=0)
Rotate image.  Angle given as degrees counter-clockwise.
save(self, fp, format=None, **params)
Save image to file or stream
show(self, title=None, command=None)
Display image (for debug purposes only)
split(self)
Split image into bands
thumbnail(self, size, resample=0)
Create thumbnail representation (modifies image in place)
tobitmap(self, name='image')
Return image as an XBM bitmap
tostring(self, encoder_name='raw', *args)
Return image as a binary string
transform(self, size, method, data=None, resample=0, fill=1)
Transform image
transpose(self, method)
Transpose image (flip or rotate in 90 degree steps)

 
Functions
       
number(s)

 
Data
        COMMENT = 'Comment'
DATE = 'Date'
EQUIPMENT = 'Digitalization equipment'
FRAMES = 'File size (no of images)'
LUT = 'Lut'
MODE = 'Image type'
NAME = 'Name'
OPEN = {'0 1 image': ('1', '1'), 'B1 image': ('1', '1'), 'B2 image': ('P', 'P;2'), 'B4 image': ('P', 'P;4'), 'CMYK image': ('CMYK', 'CMYK;L'), 'Grayscale image': ('L', 'L'), 'Greyscale image': ('L', 'L'), 'L 1 image': ('1', '1'), 'L 16 image': ('I;16', 'I;16'), 'L 16B image': ('I;16B', 'I;16B'), ...}
SAVE = {'1': ('0 1', '1'), 'CMYK': ('CMYK', 'CMYK;L'), 'F': ('L 32F', 'F;32F'), 'I': ('L 32S', 'I;32S'), 'I;16': ('L 16', 'I;16'), 'I;16B': ('L 16B', 'I;16B'), 'I;16L': ('L 16L', 'I;16L'), 'L': ('Greyscale', 'L'), 'LA': ('LA', 'LA;L'), 'P': ('Greyscale', 'P'), ...}
SCALE = 'Scale (x,y)'
SIZE = 'Image size (x*y)'
TAGS = {'Comment': 0, 'Date': 0, 'Digitalization equipment': 0, 'File size (no of images)': 0, 'Image size (x*y)': 0, 'Image type': 0, 'Lut': 0, 'Name': 0, 'Scale (x,y)': 0}
__version__ = '0.7'
i = 32
split = <_sre.SRE_Pattern object>