Method Summary |
|
public static PictureData | create(int type) Create an instance of PictureData by type.
Parameters: type - type of the picture data.Must be one of the static constants defined in the Picture class. |
public static byte[] | getChecksum(byte[] data) Compute 16-byte checksum of this picture using MD5 algorithm. |
abstract public byte[] | getData() |
public byte[] | getHeader() Return 24 byte header which preceeds the actual picture data. |
public int | getOffset() |
public byte[] | getRawData() Returns the raw binary data of this Picture excluding the first 8 bytes
which hold image signature and size of the image data. |
abstract protected int | getSignature() Blip signature. |
public int | getSize() |
abstract public int | getType() Returns type of this picture. |
public byte[] | getUID() |
abstract public void | setData(byte[] data) |
public void | setOffset(int offset) Set offset of this picture in the 'Pictures' stream. |
public void | setRawData(byte[] data) |
public void | write(OutputStream out) |