public class ShellIcon extends Icon
Icon.IconType, Icon.SystemIconGdiObject.ImageLoadParameters, GdiObject.ImageType, GdiObject.TypeGDI_ERROR, HGDI_ERRORINFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0| Constructor and Description |
|---|
ShellIcon(java.io.File iconPath)
Extracts an associated icon found in a file or an icon found in an
associated executable file.
|
ShellIcon(java.io.File file,
int iconIndex)
Retrieves an icon from the specified executable file.
|
ShellIcon(java.io.File file,
int iconIndex,
Icon.IconType iconType) |
ShellIcon(java.lang.String iconPath)
Extracts a small associated icon.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the index of the extracted icon.
|
getBitCount, getIconInfo, getSize, load, load, load, load, load, loadFromStream, toImage, updatedeleteObject, getObject, getObjectTypeclone, closeHandle, equals, waitFor, waitForasFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, writepublic ShellIcon(java.io.File file,
int iconIndex)
file - is a file name to extract the icon from.iconIndex - a zero-based index of the icon to retrieve.public ShellIcon(java.io.File file,
int iconIndex,
Icon.IconType iconType)
public ShellIcon(java.io.File iconPath)
iconPath - a full path that contains the icon.public ShellIcon(java.lang.String iconPath)
iconPath - a full path that contains the icon.