public class ShellIcon extends Icon
Icon.IconType, Icon.SystemIcon
GdiObject.ImageLoadParameters, GdiObject.ImageType, GdiObject.Type
GDI_ERROR, HGDI_ERROR
INFINITE_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, update
deleteObject, getObject, getObjectType
clone, closeHandle, equals, waitFor, waitFor
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
public 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.