GH_IconTable
Utility class for caching 32BppPArgb icons with fast lookup. Icons are hashed using a hashing algorithm to prevent identical entries.
Properties
Methods
Icon
#Gets the icon at the specified index.
Parameters:
| index (int) | Index of icon to retrieve. |
Returns: The icon associated with the runtime index.
RegisterIcon
#Register a new icon with the table. If the supplied icon is a null reference, the NullIconIndex will be returned.
Parameters:
| icon (Bitmap) | Icon to register. |
Returns: Index of icon in table. Use this index for fast retrieval.
ResizeImage
#Create a new bitmap which is the resized version of an existing image.
Parameters:
| img (Image) | Image to resize. |
| size (Size) | New size. |
| mode (InterpolationMode) | Interpolation mode to use. |
| format (PixelFormat) | Bitmap pixelformat. |
Returns: A new bitmap.