public class DefineBitsJPEG3Tag extends DefineBitsJPEG2Tag
DefineBitsJPEG3
tag in a SWF file.
This tag defines a bitmap character with JPEG compression. This tag extends DefineBitsJPEG2, adding alpha channel (opacity) data. Opacity/transparency information is not a standard feature in JPEG images, so the alpha channel information is encoded separately from the JPEG data, and compressed using the ZLIB standard for compression. The data format used by the ZLIB library is described by Request for Comments (RFCs) documents 1950 to 1952.
The data in this tag begins with the JPEG SOI marker 0xFF, 0xD8 and ends with the EOI marker 0xFF, 0xD9. Before version 8 of the SWF file format, SWF files could contain an erroneous header of 0xFF, 0xD9, 0xFF, 0xD8 before the JPEG SOI marker.
In addition to specifying JPEG data, DefineBitsJPEG2 can also contain PNG image data and non-animated GIF89a image data.
Constructor and Description |
---|
DefineBitsJPEG3Tag()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getAlphaDataOffset()
Get count of bytes in ImageData.
|
byte[] |
getBitmapAlphaData()
ZLIB compressed array of alpha data.
|
void |
setAlphaDataOffset(long value)
Set count of bytes in ImageData.
|
void |
setBitmapAlphaData(byte[] bitmapAlphaData)
ZLIB compressed array of alpha data.
|
getData, getImageData, setImageData
description, getCharacterID, setCharacterID
getTagType, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCharacterID
getTagType
public long getAlphaDataOffset()
public void setAlphaDataOffset(long value)
value
- image data sizepublic byte[] getBitmapAlphaData()
public void setBitmapAlphaData(byte[] bitmapAlphaData)
bitmapAlphaData
- bitmap alpha dataCopyright © 2016 The Apache Software Foundation. All rights reserved.