| java.lang.Object com.xoetrope.export.image.XImageExportHelper
XImageExportHelper | public class XImageExportHelper (Code) | | A helper class for exporting image file
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.2 $
|
writeImage | public static void writeImage(JComponent c, String fileName, String flavor, int w, int h)(Code) | | Write an image to file
Parameters: c - the component to write (via its print method) Parameters: fileName - the name of the file to write Parameters: flavor - the file flavour, "png" for png files, or jpeg, gif, bmp, wbmp Parameters: w - the width of the image in pixels, or < 0 to use the component's current size Parameters: h - the height of the image in pixels |
writePng | public static void writePng(JComponent c, String fileName, int w, int h)(Code) | | Write a PNG image to file
Parameters: c - the component to write (via its print method) Parameters: fileName - the name of the file to write, or < 0 to use the component's current size Parameters: w - the width of the image in pixels Parameters: h - the height of the image in pixels |
|
|