lvlaser(3)

LIBRARY ROUTINE
lvlaser - Format a Khoros image in Impress for output to the IMAGEN 8/300

LIBRARY CALL
#include "vinclude.h"
int
lvlaser(file, image, magnification, xoffset, yoffset, photo_neg, overlays)
FILE   *file;
struct xvimage *image;
int magnification, photo_neg, overlays;
float xoffset, yoffset;

INPUT

file
    files descriptor to write formatted IMPRESS to

image
    pointer to BIT xvimage structure to be formatted for printing

magnification
    log base two of the desired magnifcation (int)

xoffset
    horizontal offset from the left edge of paper of the upper left corner

yoffset
    vertical offset from the top edge of paper of the upper left corner

photo_neg
    if non-zero, then photonegative output is generated

overlays
    if non-zero then the page is not printed at the end of execution and additional output can be placed on the same page

OUTPUT

Return Value:
    1 on success, 0 on failure.

MODIFICATIONS
Scott Wilson, John Salas, Bret Thaeler, Tait Cyrus, Kurt Zeilinga, Josh Seigel, Richard Krukar, Mark Young, Mike Lang

DESCRIPTION
vlaser formats a Khoros BIT image for output on the IMAGEN 8/300 laser printer. The magnification is specified as the log base 2 of the desired magnification (i.e. 4x is -m 2). The x offset and y offset specify where on the printer page to place the upper left hand corner of the image.

The vlaser routine only works on VIFF BIT images. In order to print a non-BIT image it will be necessary to dither or convert the image before using this routine. Khoros provides several dithering routines, such as vdither(1), vdith45(1), and verrdif(1). vconvert(1) can also be used to convert a non-bit image to bit format.

SEE ALSO
vlaser(1), intro(3), vipl(3), verror(3), vutils(3) lvpostscr(1),lvlpr(1),lverrdif(1),lvconvert(1)

RESTRICTIONS
vlaser works only on BIT images.

AUTHOR
Scott Wilson, Mark Young

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.