barcode4j 2.1.0

org.krysalis.barcode4j.output.bitmap
Interface BitmapEncoder

All Known Implementing Classes:
ImageIOBitmapEncoder

public interface BitmapEncoder

This interface is used to encode bitmaps into their target formats.

Version:
$Id: BitmapEncoder.java,v 1.2 2004/09/04 20:25:54 jmaerki Exp $
Author:
Jeremias Maerki

Method Summary
 void encode(java.awt.image.BufferedImage image, java.io.OutputStream out, java.lang.String mime, int resolution)
          Encodes a BufferedImage to a target format and writes it to the OutputStream.
 java.lang.String[] getSupportedMIMETypes()
          Returns an array of MIME types supported.
 

Method Detail

getSupportedMIMETypes

java.lang.String[] getSupportedMIMETypes()
Returns an array of MIME types supported.

Returns:
the array of MIME types

encode

void encode(java.awt.image.BufferedImage image,
            java.io.OutputStream out,
            java.lang.String mime,
            int resolution)
            throws java.io.IOException
Encodes a BufferedImage to a target format and writes it to the OutputStream.

Parameters:
image - the image to encode
out - the OutputStream to write the image to
mime - the MIME type in which to encode the image
resolution - the resolution in dpi of the image
Throws:
java.io.IOException - in case of an I/O problem

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.