Class to manipulate data in the Clipboard Variant (VT_CF) format.
SummaryInformation#getThumbnail(), Clipboard Operations
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | _thumbnailData
A |
| public static final int | CF_BITMAP
Clipboard Format - Bitmap |
| public static final int | CF_DIB
Clipboard Format - Device Independent Bitmap |
| public static final int | CF_ENHMETAFILE
Clipboard Format - Enhanced Windows metafile format |
| public static final int | CF_METAFILEPICT
Clipboard Format - Windows metafile format. |
| public static final int | |
| public static final int | CFTAG_MACINTOSH
Clipboard Format Tag - Macintosh clipboard format A |
| public static final int | |
| public static final int | CFTAG_WINDOWS
Clipboard Format Tag - Windows clipboard format A |
| private static final int | |
| private static int | |
| public static final int | OFFSET_CF
Offset in bytes where the Clipboard Format starts in the
This is only valid if the Clipboard Format Tag is |
| public static final int | OFFSET_CFTAG
Offset in bytes where the Clipboard Format Tag starts in the
|
| public static final int | OFFSET_WMFDATA
Offset in bytes where the Windows Metafile (WMF) image data
starts in the There is only WMF data at this point in the
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | Thumbnail(final byte[]
The thumbnail data thumbnailData)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: a flag indicating the Clipboard FormatReturns an Will throw an exception if the Thumbnail's Clipboard Format
Tag is not |
| public long | Returns: A flag indicating the Clipboard Format TagReturns an Possible return values are: |
| public static int | |
| public byte[] | |
| public byte[] | Returns: A WMF image of the ThumbnailReturns the Thumbnail as a This
|
| public static void | |
| public void | setThumbnail(final byte[]
The new thumbnail value thumbnail)Sets the Thumbnail's underlying |
| _thumbnailData | back to summary |
|---|---|
| private byte[] _thumbnailData A | |
| CF_BITMAP | back to summary |
|---|---|
| public static final int CF_BITMAP Clipboard Format - Bitmap | |
| CF_DIB | back to summary |
|---|---|
| public static final int CF_DIB Clipboard Format - Device Independent Bitmap | |
| CF_ENHMETAFILE | back to summary |
|---|---|
| public static final int CF_ENHMETAFILE Clipboard Format - Enhanced Windows metafile format | |
| CF_METAFILEPICT | back to summary |
|---|---|
| public static final int CF_METAFILEPICT Clipboard Format - Windows metafile format. This is the recommended way to store thumbnails in Property Streams. Note This is not the same format used in regular WMF images. The clipboard version of this format has an extra clipboard-specific header. | |
| CFTAG_FMTID | back to summary |
|---|---|
| public static final int CFTAG_FMTID Clipboard Format Tag - Format ID A GUID containing a format identifier (FMTID). This is rarely used. | |
| CFTAG_MACINTOSH | back to summary |
|---|---|
| public static final int CFTAG_MACINTOSH Clipboard Format Tag - Macintosh clipboard format A | |
| CFTAG_NODATA | back to summary |
|---|---|
| public static final int CFTAG_NODATA Clipboard Format Tag - No Data A | |
| CFTAG_WINDOWS | back to summary |
|---|---|
| public static final int CFTAG_WINDOWS Clipboard Format Tag - Windows clipboard format A | |
| DEFAULT_MAX_RECORD_LENGTH | back to summary |
|---|---|
| private static final int DEFAULT_MAX_RECORD_LENGTH | |
| MAX_RECORD_LENGTH | back to summary |
|---|---|
| private static int MAX_RECORD_LENGTH | |
| OFFSET_CF | back to summary |
|---|---|
| public static final int OFFSET_CF Offset in bytes where the Clipboard Format starts in the
This is only valid if the Clipboard Format Tag is | |
| OFFSET_CFTAG | back to summary |
|---|---|
| public static final int OFFSET_CFTAG Offset in bytes where the Clipboard Format Tag starts in the
| |
| OFFSET_WMFDATA | back to summary |
|---|---|
| public static final int OFFSET_WMFDATA Offset in bytes where the Windows Metafile (WMF) image data
starts in the There is only WMF data at this point in the
Note The | |
| Thumbnail | back to summary |
|---|---|
| public Thumbnail() Default Constructor. If you use it then one you'll have to add
the thumbnail | |
| Thumbnail | back to summary |
|---|---|
| public Thumbnail(final byte[] thumbnailData) Creates a
| |
| getClipboardFormat | back to summary |
|---|---|
| public long getClipboardFormat() throws HPSFException Returns an Will throw an exception if the Thumbnail's Clipboard Format
Tag is not Possible return values are:
| |
| getClipboardFormatTag | back to summary |
|---|---|
| public long getClipboardFormatTag() Returns an Possible return values are:
| |
| getMaxRecordLength | back to summary |
|---|---|
public static int getMaxRecordLength()
| |
| getThumbnail | back to summary |
|---|---|
| public byte[] getThumbnail() Returns the thumbnail as a
| |
| getThumbnailAsWMF | back to summary |
|---|---|
| public byte[] getThumbnailAsWMF() throws HPSFException Returns the Thumbnail as a This
See http://www.wvware.com/caolan/ora-wmf.html for more information on the WMF image format.
| |
| setMaxRecordLength | back to summary |
|---|---|
public static void setMaxRecordLength(int length)
| |
| setThumbnail | back to summary |
|---|---|
| public void setThumbnail(final byte[] thumbnail) Sets the Thumbnail's underlying
| |