Class GraphicExtension
Namespace: AppMana.InteractionToolkit.MaterialUI
Static class with Graphic extension methods.
public static class GraphicExtension
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
GetSpriteImage(Graphic)
Gets the sprite image.
public static Sprite GetSpriteImage(this Graphic graphic)
Parameters
graphic Graphic
The graphic to check.
Returns
Sprite
The Sprite of the Graphic, if applicable and one exists.
SetImage(Graphic, Sprite)
Sets the image of a Graphic (must be of type Image).
public static void SetImage(this Graphic graphic, Sprite sprite)
Parameters
graphic Graphic
The graphic to modify.
sprite Sprite
The sprite to set.
