ImageWriteParam.
javax.imageio.plugins.bmp.BMPImageWriteParam
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int[] | |
| private byte[] | |
| private int | |
| private int | |
| private ByteArrayOutputStream | |
| private int | |
| private int[] | |
| private boolean | |
| private short[] | |
| private ImageOutputStream | stream
The output stream to write into |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | BMPImageWriter(ImageWriterSpi originator)
Constructs |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected boolean | |
| public boolean | canWriteRasters()
Overrides javax. Returns |
| public IIOMetadata | convertImageMetadata(IIOMetadata metadata, ImageTypeSpecifier type, ImageWriteParam param)
Implements abstract javax. Implements javax. Returns an |
| public IIOMetadata | convertStreamMetadata(IIOMetadata inData, ImageWriteParam param)
Implements abstract javax. Implements javax. Returns an |
| private void | |
| private void | |
| private int | |
| public IIOMetadata | getDefaultImageMetadata(ImageTypeSpecifier imageType, ImageWriteParam param)
Implements abstract javax. Returns an |
| public IIOMetadata | getDefaultStreamMetadata(ImageWriteParam param)
Implements abstract javax. Returns an |
| public ImageWriteParam | getDefaultWriteParam()
Overrides javax. Returns a new |
| protected int | |
| protected int | |
| private synchronized void | |
| private boolean | |
| public void | |
| private int | |
| public void | setOutput(Object output)
Overrides javax. Sets the destination to the given
|
| public void | write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param)
Implements abstract javax. Appends a complete image stream containing a single image and associated stream and image metadata and thumbnails to the output. |
| private void | |
| private void | |
| private void | |
| protected void | |
| private void | writePixels(int l, int scanlineBytes, int bitsPerPixel, int[] pixels, int padding, int numBands, IndexColorModel icm)
|
| private void |
| bitMasks | back to summary |
|---|---|
| private int[] bitMasks | |
| bitPos | back to summary |
|---|---|
| private int[] bitPos | |
| bpixels | back to summary |
|---|---|
| private byte[] bpixels | |
| compImageSize | back to summary |
|---|---|
| private int compImageSize | |
| compressionType | back to summary |
|---|---|
| private int compressionType | |
| embedded_stream | back to summary |
|---|---|
| private ByteArrayOutputStream embedded_stream | |
| h | back to summary |
|---|---|
| private int h | |
| ipixels | back to summary |
|---|---|
| private int[] ipixels | |
| isTopDown | back to summary |
|---|---|
| private boolean isTopDown | |
| spixels | back to summary |
|---|---|
| private short[] spixels | |
| stream | back to summary |
|---|---|
| private ImageOutputStream stream The output stream to write into | |
| version | back to summary |
|---|---|
| private int version | |
| w | back to summary |
|---|---|
| private int w | |
| BMPImageWriter | back to summary |
|---|---|
| public BMPImageWriter(ImageWriterSpi originator) Constructs | |
| canEncodeImage | back to summary |
|---|---|
| protected boolean canEncodeImage(int compression, ColorModel cm, SampleModel sm) | |
| canEncodeImage | back to summary |
|---|---|
| protected boolean canEncodeImage(int compression, ImageTypeSpecifier imgType) | |
| canWriteRasters | back to summary |
|---|---|
| public boolean canWriteRasters() Overrides javax. Doc from javax. Returns The default implementation returns
| |
| convertImageMetadata | back to summary |
|---|---|
| public IIOMetadata convertImageMetadata(IIOMetadata metadata, ImageTypeSpecifier type, ImageWriteParam param) Implements abstract javax. Implements javax. Doc from javax. Returns an An optional If the supplied
| |
| convertStreamMetadata | back to summary |
|---|---|
| public IIOMetadata convertStreamMetadata(IIOMetadata inData, ImageWriteParam param) Implements abstract javax. Implements javax. Doc from javax. Returns an An optional If the supplied
| |
| encodeRLE4 | back to summary |
|---|---|
| private void encodeRLE4(byte[] bipixels, int scanlineBytes) throws IOException | |
| encodeRLE8 | back to summary |
|---|---|
| private void encodeRLE8(byte[] bpixels, int scanlineBytes) throws IOException | |
| firstLowBit | back to summary |
|---|---|
| private int firstLowBit(int num) | |
| getDefaultImageMetadata | back to summary |
|---|---|
| public IIOMetadata getDefaultImageMetadata(ImageTypeSpecifier imageType, ImageWriteParam param) Implements abstract javax. Doc from javax. Returns an An optional If the supplied
| |
| getDefaultStreamMetadata | back to summary |
|---|---|
| public IIOMetadata getDefaultStreamMetadata(ImageWriteParam param) Implements abstract javax. Doc from javax. Returns an An optional If the supplied Writers that do not make use of stream metadata
(e.g., writers for single-image formats) should return
| |
| getDefaultWriteParam | back to summary |
|---|---|
| public ImageWriteParam getDefaultWriteParam() Overrides javax. Doc from javax. Returns a new The default implementation constructs and returns a new
Individual plug-ins may return an instance of
| |
| getPreferredCompressionType | back to summary |
|---|---|
| protected int getPreferredCompressionType(ColorModel cm, SampleModel sm) | |
| getPreferredCompressionType | back to summary |
|---|---|
| protected int getPreferredCompressionType(ImageTypeSpecifier imageType) | |
| incCompImageSize | back to summary |
|---|---|
| private synchronized void incCompImageSize(int value) | |
| isEven | back to summary |
|---|---|
| private boolean isEven(int number) | |
| reset | back to summary |
|---|---|
| public void reset() Overrides javax. Doc from javax. Restores the The default implementation calls
| |
| roundBpp | back to summary |
|---|---|
| private int roundBpp(int x) | |
| setOutput | back to summary |
|---|---|
| public void setOutput(Object output) Overrides javax. Doc from javax. Sets the destination to the given
If Use of a general The default implementation sets the
| |
| write | back to summary |
|---|---|
| public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) throws IOException Implements abstract javax. Doc from javax. Appends a complete image stream containing a single image and
associated stream and image metadata and thumbnails to the
output. Any necessary header information is included. If the
output is an The output must have been set beforehand using the
Stream metadata may optionally be supplied; if it is
If The supplied thumbnails will be resized if needed, and any thumbnails in excess of the supported number will be ignored. If the format requires additional thumbnails that are not provided, the writer should generate them internally. An If the supplied
| |
| writeEmbedded | back to summary |
|---|---|
| private void writeEmbedded(IIOImage image, ImageWriteParam bmpParam) throws IOException | |
| writeFileHeader | back to summary |
|---|---|
| private void writeFileHeader(int fileSize, int offset) throws IOException | |
| writeInfoHeader | back to summary |
|---|---|
| private void writeInfoHeader(int headerSize, int bitsPerPixel) throws IOException | |
| writeMaskToPalette | back to summary |
|---|---|
| protected void writeMaskToPalette(int mask, int i, byte[] r, byte[] g, byte[] b, byte[] a) | |
| writePixels | back to summary |
|---|---|
| private void writePixels(int l, int scanlineBytes, int bitsPerPixel, int[] pixels, int padding, int numBands, IndexColorModel icm) throws IOException | |
| writeSize | back to summary |
|---|---|
| private void writeSize(int dword, int offset) throws IOException | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | imageComplete(ImageWriter source)
Implements javax. Reports that the image write operation has completed. |
| public void | imageProgress(ImageWriter source, float percentageDone)
Implements javax. Reports the approximate degree of completion of the current
|
| public void | imageStarted(ImageWriter source, int imageIndex)
Implements javax. Reports that an image write operation is beginning. |
| public void | thumbnailComplete(ImageWriter source)
Implements javax. Reports that a thumbnail write operation has completed. |
| public void | thumbnailProgress(ImageWriter source, float percentageDone)
Implements javax. Reports the approximate degree of completion of the current
thumbnail write within the associated |
| public void | thumbnailStarted(ImageWriter source, int imageIndex, int thumbnailIndex)
Implements javax. Reports that a thumbnail write operation is beginning. |
| public void | writeAborted(ImageWriter source)
Implements javax. Reports that a write has been aborted via the writer's
|
| IIOWriteProgressAdapter | back to summary |
|---|---|
| private IIOWriteProgressAdapter() | |
| imageComplete | back to summary |
|---|---|
| public void imageComplete(ImageWriter source) Implements javax. Doc from javax. Reports that the image write operation has completed. All
| |
| imageProgress | back to summary |
|---|---|
| public void imageProgress(ImageWriter source, float percentageDone) Implements javax. Doc from javax. Reports the approximate degree of completion of the current
The degree of completion is expressed as an index
indicating which image is being written, and a percentage
varying from Each particular
| |
| imageStarted | back to summary |
|---|---|
| public void imageStarted(ImageWriter source, int imageIndex) Implements javax. Doc from javax. Reports that an image write operation is beginning. All
| |
| thumbnailComplete | back to summary |
|---|---|
| public void thumbnailComplete(ImageWriter source) Implements javax. Doc from javax. Reports that a thumbnail write operation has completed. All
| |
| thumbnailProgress | back to summary |
|---|---|
| public void thumbnailProgress(ImageWriter source, float percentageDone) Implements javax. Doc from javax. Reports the approximate degree of completion of the current
thumbnail write within the associated
| |
| thumbnailStarted | back to summary |
|---|---|
| public void thumbnailStarted(ImageWriter source, int imageIndex, int thumbnailIndex) Implements javax. Doc from javax. Reports that a thumbnail write operation is beginning. All
| |
| writeAborted | back to summary |
|---|---|
| public void writeAborted(ImageWriter source) Implements javax. Doc from javax. Reports that a write has been aborted via the writer's
| |