public abstract class PrintUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex,
java.awt.image.BufferedImage image)
Print a BufferedImage.
|
public static int print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex,
java.awt.image.BufferedImage image)
graphics - the context into which the page is drawnpageFormat - the size and orientation of the page being drawnpageIndex - the zero based index of the page to be drawnimage - The BufferedImage to print.pageIndex specifies a
non-existent page.