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.
Draw
Render this icon into a graphics context.
Implements: Draw
DrawDropShadow
Create a bitmap containing the drop shadow of this icon.
Returns: A bitmap with only black pixels and varying transparencies. The size of this bitmap is the provided size plus padding to cater for the blurring.
DrawToBitmap
Render the icon to a bitmap.
public Bitmap DrawToBitmap()
Size
size,
Size of bitmap.
padding,
Number of padding pixels around entire image.
Color
background
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
FindState
Find the icon state with the specified name.
Returns: Icon state with given name or null.
Implements: FindState
MoveState
Move a named state to a new value over time.
public void MoveState()
value,
State value to assign.
name = null,
Name of state. Leave blank to set the default state.
duration = null,
Animation duration. Leave blank to re-use the previous duration.
motion = null
Animation motion. Leave blank to re-use the previous motion.
Implements: MoveState
SetState
Set the value of a named state immediately.
Implements: SetState