Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/GifImagePluginH.html
Дата изменения: Fri Apr 8 12:46:13 2016
Дата индексирования: Mon Apr 11 03:59:52 2016
Кодировка:
Python: module GifImagePluginH
 
 
GifImagePluginH (version 0.4)
index
GifImagePluginH.py

# The Python Imaging Library.
# $Id: GifImagePluginH.py,v 1.2 1998/05/28 20:14:52 friedric Exp $
#
# GIF file handling
#
# History:
#       95-09-01 fl     Created
#       96-12-14 fl     Added interlace support
#       96-12-30 fl     Added animation support
#       97-01-05 fl     Added write support, fixed local colour map bug
#       97-02-23 fl     Make sure to load raster data in getdata()
#       97-07-05 fl     Support external decoder
#
# Copyright (c) Secret Labs AB 1997.
# Copyright (c) Fredrik Lundh 1995-97.
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
ImageFileH
ImageH
ImagePaletteH
array

 
Classes
       
ImageFileH.ImageFile(ImageH.Image)
GifImageFile

 
class GifImageFile(ImageFileH.ImageFile)
    
Method resolution order:
GifImageFile
ImageFileH.ImageFile
ImageH.Image

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

Data and other attributes defined here:
format = 'GIF'
format_description = 'Compuserve GIF'

Methods inherited from ImageFileH.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_read(self, bytes)
load_seek(self, pos)
verify(self)
Check file integrity

Methods inherited from ImageH.Image:
__setattr__(self, id, value)
convert(self, mode=None, data=None)
Convert to other pixel format
copy(self)
Copy raster data
crop(self, box=None)
Crop region from image
filter(self, kernel)
Apply environment filter to image
fromstring(self, data, decoder='raw', *args)
Load data to image from binary string
getbbox(self)
Get bounding box of actual data (non-zero pixels) in image
getdata(self, band=None)
Get image data as sequence object.
getpixel(self, (x, y))
Get pixel value
getprojection(self)
Get projection to x and y axes
histogram(self, mask=None)
Take histogram of image
offset(self, xoffset, yoffset=None)
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, im)
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.
resize(self, size, resample=0)
Resize image
rotate(self, angle, resample=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)
Display image (for debug purposes only)
split(self)
Split image into bands
thumbnail(self, size)
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, resample=0)
Transform image
transpose(self, method)
Transpose image (flip or rotate in 90 degree steps)

 
Functions
       
getdata(im, offset=(0, 0), **params)
Return a list of strings representing this image.
The first string is a local image header, the rest contains
encoded image data.
getheader(im)
Return a list of strings representing a GIF header
i16(c)
o16(i)

 
Data
        RAWMODE = {'1': 'L', 'L': 'L', 'P': 'P'}
__version__ = '0.4'