IIcon
ReferencesBase interface for icons and other UI images. This type does *not* wrap bitmaps, but instead represents scale-agnostic, relatively small images of either vector, pixel or algorithmic contents.
Properties
Methods
Draw
#Render this icon into a graphics context.
Parameters:
| context (IconContext) | Graphics context for icon. |
DrawToBitmap
#Render the icon to a bitmap.
Parameters:
| size (Size) | Size of bitmap. |
| padding (int) | Number of padding pixels around entire image. |
| background (Color) | Icon background colour. Note that the actual bitmap will be drawn on a Transparent background. This argument merely informs those parts of icon that case about background/foreground contrast. |
Returns: Rendered bitmap.
FindState
#Find the icon state with the specified name.
Parameters:
| name (string) | Name to search for. |
Returns: Icon state with given name or null.
MoveState
#Move a named state to a new value over time.