FpxImagePlugin (version 0.1)
index
/Library/Python/2.7/site-packages/PIL/FpxImagePlugin.py

# THIS IS WORK IN PROGRESS
#
# The Python Imaging Library.
# $Id$
#
# FlashPix support for PIL
#
# History:
# 97-01-25 fl   Created (reads uncompressed RGB images only)
#
# Copyright (c) Secret Labs AB 1997.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
Image
ImageFile
StringIO
string

 
Classes
       
ImageFile.ImageFile(Image.Image)
FpxImageFile

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

Methods defined here:
load(self)

Data and other attributes defined here:
format = 'FPX'
format_description = 'FlashPix'

Methods inherited from ImageFile.ImageFile:
__init__(self, fp=None, filename=None)
draft(self, mode, size)
Set draft mode
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
seek(self, frame)
Seek to given frame in sequence file
show(self, title=None, command=None)
Display image (for debug purposes only)
split(self)
Split image into bands
tell(self)
Return current frame number
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)

 
Data
        MAGIC = '\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1'
MODES = {32766: ('A', 'L'), (65536,): ('L', 'L'), (98304, 98302): ('RGBA', 'LA'), (131072, 131073, 131074): ('RGB', 'YCC;P'), (163840, 163841, 163842, 163838): ('RGBA', 'YCCA;P'), (196608, 196609, 196610): ('RGB', 'RGB'), (229376, 229377, 229378, 229374): ('RGBA', 'RGBA')}
VT = {0: 'VT_EMPTY', 1: 'VT_NULL', 2: 'VT_I2', 3: 'VT_I4', 4: 'VT_R4', 5: 'VT_R8', 6: 'VT_CY', 7: 'VT_DATE', 8: 'VT_BSTR', 9: 'VT_DISPATCH', ...}
VT_BLOB = 65
VT_BLOB_OBJECT = 70
VT_BOOL = 11
VT_BSTR = 8
VT_CARRAY = 28
VT_CF = 71
VT_CLSID = 72
VT_CY = 6
VT_DATE = 7
VT_DECIMAL = 14
VT_DISPATCH = 9
VT_EMPTY = 0
VT_ERROR = 10
VT_FILETIME = 64
VT_HRESULT = 25
VT_I1 = 16
VT_I2 = 2
VT_I4 = 3
VT_I8 = 20
VT_INT = 22
VT_LPSTR = 30
VT_LPWSTR = 31
VT_NULL = 1
VT_PTR = 26
VT_R4 = 4
VT_R8 = 5
VT_SAFEARRAY = 27
VT_STORAGE = 67
VT_STORED_OBJECT = 69
VT_STREAM = 66
VT_STREAMED_OBJECT = 68
VT_UI1 = 17
VT_UI2 = 18
VT_UI4 = 19
VT_UI8 = 21
VT_UINT = 23
VT_UNKNOWN = 13
VT_USERDEFINED = 29
VT_VARIANT = 12
VT_VECTOR = 4096
VT_VOID = 24
WORD_CLSID = '00020900-0000-0000-C000-000000000046'
__version__ = '0.1'
k = 'VT_UNKNOWN'
v = 13