| java.lang.Object image.writer.ImageWriterExample1
All known Subclasses: image.writer.ImageWriterExample2,
ImageWriterExample1 | public class ImageWriterExample1 (Code) | | |
generateBitmapUsingJava2D | public void generateBitmapUsingJava2D(File outputFile, String format) throws IOException(Code) | | Creates a bitmap file. We paint a few things on a bitmap and then save the bitmap using
an ImageWriter.
Parameters: outputFile - the target file Parameters: format - the target format (a MIME type, ex. "image/png") throws: IOException - In case of an I/O error |
main | public static void main(String[] args)(Code) | | Command-line interface
Parameters: args - command-line arguments |
paintSome | protected void paintSome(Graphics2D g2d, int pageNum)(Code) | | Paints a few things on a Graphics2D instance.
Parameters: g2d - the Graphics2D instance Parameters: pageNum - a page number |
|
|