Class TextureSpriteConverter
Definition
Namespace: StardewUI.Framework.Converters
Assembly: StardewUI.dll
Converts a texture to a sprite record, using the texture's entire bounds as the source rectangle.
public class TextureSpriteConverter :
StardewUI.Framework.Converters.IValueConverter<Microsoft.Xna.Framework.Graphics.Texture2D, StardewUI.Graphics.Sprite>,
StardewUI.Framework.Converters.IValueConverter
Inheritance
Object ⇦ TextureSpriteConverter
Implements
IValueConverter<Texture2D, Sprite>, IValueConverter
Members
Constructors
Name | Description |
---|---|
TextureSpriteConverter() |
Methods
Name | Description |
---|---|
Convert(Texture2D) | Converts a value from the source type to the destination type. |
Details
Constructors
TextureSpriteConverter()
Methods
Convert(Texture2D)
Converts a value from the source type to the destination type.
Parameters
value
Texture2D
The value to convert.