Implements IIcon for vector graphics.
Constructors
Fields
Properties
Implements: States
Implements: Type
Methods
AddState
Add a state to this icon. This method ought to be called from the constructor of derived types only.
Parameters:
| state (IconState) | State to add. |
Parameters:
| context (IconContext) | Graphics context for icon. |
Implements: Draw
DrawDropShadow
Create a bitmap containing the drop shadow of this icon.
DrawInternal
#Internal render method.
Parameters:
| context (IconContext) | Graphics context. |
Overrides: AbstractIcon.DrawInternal
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.
Implements: DrawToBitmap
MoveState
Move a named state to a new value over time.
Parameters:
| value (double) | State value to assign. |
| name (string = null) | Name of state. Leave blank to set the default state. |
| duration (Duration? = null) | Animation duration. Leave blank to re-use the previous duration. |
| motion (Motion? = null) | Animation motion. Leave blank to re-use the previous motion. |
Implements: MoveState
SetState
Set the value of a named state immediately.