1.1.12. openraster

1.1.12.1. 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.
OpenRaster.check()
Check if the current path is a valid openraster file.
OpenRaster.get_size()

Retrieve the openraster file width and height.

RETURNS: A tuple with the width and height.
OpenRaster.load(document)

Load the openraster file contents into the given document.

document: A document object, usually empty.
OpenRaster.save(document)

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