UIImage Class

Image UI component for displaying textures.

public class UIImage : Brine2D.UI.IUIComponent

Inheritance System.Object → UIImage

Implements IUIComponent

Properties
Alpha Alpha transparency (not yet supported by IRenderer - for future use).
MaintainAspectRatio Whether to maintain aspect ratio when scaling.
Rotation Rotation in degrees (not yet supported by IRenderer).
SourceRect Source rectangle in texture (null = use entire texture).
Texture Texture to display.
Methods
SetTexture(ITexture, bool) Sets the texture and optionally auto-sizes the component.