These are implemented by the module SchemeInterpressImpl.
open-interpress-output
file-name [
Function]
Create an Interpress output handle.
declare-interpress-value
interpress-output-handle
object [
Function]
Declares a value (font, pixel-array, color, color-operator, etc.) that is likely to be used multiple times, so that it need be placed into the interpress master only once.
write-interpress-page
interpress-output-handle
page-action [
Function]
Write an interpress page; page-action takes one argument, the imager context to image into. The initial coordinate system of this context is meters.
close-interpress-output
interpress-output-handle [
Function]
Close an Interpress output handle.
interpress-output?
object [
Function]
Test for an Interpress output handle.
open-interpress-input
file-name [
Function]
Opens an Interpress master for input.
interpress-input-page-count
interpress-input-handle [
Function]
Returns the number of pages in the interpress master.
interpress-input?
object [
Function]
Test for an Interpress input handle.
interpret-interpress-page
interpress-input-handle
page-number
context [
Function]
Interpret an Interpress page into an imager context. The coordinate system is assumed to be in meters.
close-interpress-input
interpress-input-handle [
Function]
Close an Interpress input handle.
xerox-compress-pixel-array
pixel-array [
Function]
Make a xerox/compressed pixel-array from a one-bit-per-pixel pixel-array.
write-raster-encoding-standard-file
filename res-description [
Function]
Creates a Xerox Raster Encoding Standard file.
res-description is a list containing entries of the form:
(header string)
(image-scale (x-scale y-scale))
(x-dimension number)
(y-dimension number)
(mask-image pixel-array)
(color-image pixel-array)
(color-operator color-operator)
(image-properties image-property-list)
read-raster-encoding-standard-file
filename [
Function]
Reads a Xerox Raster Encoding Standard file and returns an res-description as taken by write-raster-encoding-standard-file.
write-restricted-res
output-port pixel-array resolution as-mask? [ name-string ] [
Function]
Creates a Xerox Restricted Raster Encoding Standard file. pixel-array should be a bitmap; resolution is in bits per inch; if as-mask?, the bitmap will be in the mask-image component; otherwise it will be in the color-image component with a gray-linear color operator.
The following are implemented by InterpressUtil.scheme, which must be explicitly
loaded.
write-interpress
filename
thunk [
Function]
Makes a one-page interpress master; thunk should draw a picture to *default-context*, in point units.
read-ais-as-res
filename
white-pixel black-pixel [
Function]
Reads an AIS file, making an res-description (see above).
read-interpress-page
filename
page-number [
Function]
Makes a thunk that draws a picture to *default-context*, in point units.
add-filename-extension
filename
ext [
Function]
Strips directory, replaces or provides filename extension.
interpress->compressed
filename [
page-number ... ]
[
Function]
Converts an interpress master to one that consists of compressed bitmaps; the output file gets an extension of ".cip". If page-number arguments are sullpied, only those pages are converted; otherwise the whole master is converted. The output resolution is controlled by the global res-bpi (default 300).
interpress->res
filename
compress? [
page-number ... ]
[
Function]
Converts an Interpress master to restricted RES (raster encoding standard) files. If compress? is true, the bitmaps will be a maskImage in the Xerox/Compressed encoding; otherwise they will be a colorImage in the packed encoding.
... finish this someday