FileDocCategorySizeDatePackage
BMPImageWriteParam.javaAPI DocAndroid 1.5 API2312Wed May 06 22:41:54 BST 2009javax.imageio.plugins.bmp

BMPImageWriteParam

public class BMPImageWriteParam extends ImageWriteParam
The BMPImageWriteParam class allows encoding an image in BMP format.
since
Android 1.0

Fields Summary
private boolean
topDown
The top down.
Constructors Summary
public BMPImageWriteParam()
Instantiates a new BMPImageWriteParam with default values of all parameters.

        this(null);
    
public BMPImageWriteParam(Locale locale)
Instantiates a new BMPImageWriteParam with the specified Locale.

param
locale the specified Locale.

        super(locale);

        // Set the compression
        canWriteCompressed = true;
        compressionTypes = new String[] {
                "BI_RGB", "BI_RLE8", "BI_RLE4", "BI_BITFIELDS"
        };
        compressionType = compressionTypes[0];
    
Methods Summary
public booleanisTopDown()
Returns true if the data is written in top-down order, false otherwise.

return
true if the data is written in top-down order, false otherwise.

        return topDown;
    
public voidsetTopDown(boolean topDown)
Sets true if the data will be written in a top-down order, false otherwise.

param
topDown the new top-down value.

        this.topDown = topDown;