1.1.12. openraster class OpenRaster

OpenRaster.__init__(path, mode='r')

Create a new OpenRaster instance pointing to a disk location.

path: File absulute location.
mode: Read or write mode as unique char string.
Check if the current path is a valid openraster file.

Retrieve the openraster file width and height.

RETURNS: A tuple with the width and height.

Load the openraster file contents into the given document.

document: A document object, usually empty.

Dump the given document contents to a new openraster file, this operation will overwrite files in the current path.

document: A document object to dump.

Table Of Contents

Previous topic

1.1.11. log

Next topic

1.1.13. plugin

This Page