__init__([fp, filename]) | |
convert([mode, data, dither, palette, colors]) | Convert to other pixel format |
copy() | Copy raster data |
crop([box]) | Crop region from image |
draft(mode, size) | |
filter(filter) | Apply environment filter to image |
fromstring(data[, decoder_name]) | Load data to image from binary string |
getbands() | Get band names |
getbbox() | Get bounding box of actual data (non-zero pixels) in image |
getcolors([maxcolors]) | Get colors from image, up to given limit |
getdata([band]) | Get image data as sequence object. |
getextrema() | Get min/max value |
getim() | Get PyCObject pointer to internal image memory |
getpalette() | Get palette contents. |
getpixel(xy) | Get pixel value |
getprojection() | Get projection to x and y axes |
histogram([mask, extrema]) | Take histogram of image |
load() | Load image data based on tile list |
load_djpeg() | |
load_end() | |
load_prepare() | |
offset(xoffset[, yoffset]) | (deprecated) Offset image in horizontal and/or vertical direction |
paste(im[, box, mask]) | Paste other image into region |
point(lut[, mode]) | Map image through lookup table |
putalpha(alpha) | Set alpha layer |
putdata(data[, scale, offset]) | Put data from a sequence object into an image. |
putpalette(data[, rawmode]) | Put palette data into an image. |
putpixel(xy, value) | Set pixel value |
quantize([colors, method, kmeans, palette]) | |
resize(size[, resample]) | Resize image |
rotate(angle[, resample, expand]) | Rotate image. |
save(fp[, format]) | Save image to file or stream |
seek(frame) | Seek to given frame in sequence file |
show([title, command]) | Display image (for debug purposes only) |
split() | Split image into bands |
tell() | Return current frame number |
thumbnail(size[, resample]) | Create thumbnail representation (modifies image in place) |
tobitmap([name]) | Return image as an XBM bitmap |
tostring([encoder_name]) | Return image as a binary string |
transform(size, method[, data, resample, fill]) | Transform image |
transpose(method) | Transpose image (flip or rotate in 90 degree steps) |
verify() | Check file integrity |
format | str(object) -> string |
format_description | str(object) -> string |
Descriptions
Method details
Attribute details
Inherited member details
Convert to other pixel format
Copy raster data
Crop region from image
Apply environment filter to image
Load data to image from binary string
Get band names
Get bounding box of actual data (non-zero pixels) in image
Get colors from image, up to given limit
Get image data as sequence object.
Get min/max value
Get PyCObject pointer to internal image memory
Get palette contents.
Get pixel value
Get projection to x and y axes
Take histogram of image
Load image data based on tile list
(deprecated) Offset image in horizontal and/or vertical direction
Paste other image into region
Map image through lookup table
Set alpha layer
Put data from a sequence object into an image.
Put palette data into an image.
Set pixel value
Resize image
Rotate image. Angle given as degrees counter-clockwise.
Save image to file or stream
Seek to given frame in sequence file
Display image (for debug purposes only)
Split image into bands
Return current frame number
Create thumbnail representation (modifies image in place)
Return image as an XBM bitmap
Return image as a binary string
Transform image
Transpose image (flip or rotate in 90 degree steps)
Check file integrity