File ../../LibScriptableImages-1.0/LibScriptableImagesPNM-1.0/LibScriptableImagesPNM-1.0.lua

Functions

PNM:GetOptions (db, callback, data) Get an Ace3 option table.
PNM:New (name, config, errorLevel) Parse a PNM image and return the data


Functions

PNM:GetOptions (db, callback, data)
Get an Ace3 option table. Plug this into a group type's args.

Parameters

  • db: The database table
  • callback: Provide this if you want to execute the callback once an option is changed
  • data: Some data to pass when executing the callback

Return value:

An Ace3 options table -- `name.args = options`.
PNM:New (name, config, errorLevel)
Parse a PNM image and return the data

Parameters

  • name: A name for the image
  • config: This image's parameters
  • errorLevel:

Usage:

:New(name, config, errorLevel)

Return value:

A new PNM object. This will have one of these three fields: bitmap, grayimage, colorimage. It will also have w, h, and n.

Valid XHTML 1.0!