Skip to content
Paco Zamora Martinez edited this page Jan 5, 2014 · 3 revisions

Introduction

This package is avaialable as require("aprilann.ImageIO").

ImageIO package implement functions for read/write of images in any supported format. Currently PNG and TIFF formats are supported.

Functions

ImageRGB = ImageIO.read( filename [, img_format] )

This function allows to read an image from a given filename. It returns an instance of Image class. The img_format is optional, if not given, it will be extracted from the extension of the given filename. If given, it must be a string like png, tiff or tif. More formats will be supported in the future.

ImageIO.write( Image|ImageRGB, filename [, img_format] )

This function allows to write an image into a given filename. The img_format is optional, if not given, it will be extracted from the extension of the given filename. If given, it must be a string like png, tiff or tif. More formats will be supported in the future.

Clone this wiki locally