ArionImage class Core

A picture on a board or a control surface: an ArionBitmap read from a stream, a file or (with SkiaBitmaps.From) an SKImage, drawn into the control's box as ArionImage.Stretch says. The surface decodes the bitmap on its first draw and keeps it (on the GPU as a texture) for as long as the bitmap lives; a frame never decodes again. Swapping ArionImage.Source repaints only the control.

A screen reader reads it as an image named by ArionImage.AltText; without one it is decoration and not listed.

Styling. From the style sheets (Select.Type<ArionImage>()): a background behind the picture, a border, a corner radius that rounds the frame, and the opacity.

public sealed class ArionImage : Control
Namespace
ArionUI.Presentation.Controls
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease
Inherits
Control

Constructors

ArionImage

public ArionImage();

Properties

AltText

public Func<string>? AltText { get; init; }

The picture's alternative text for a screen reader; null or empty marks it as decoration.

Height

public double? Height { get; init; }

Desired height; null keeps the picture's aspect at the width, or its own height.

Role

public override ControlRole Role { get; }

What KIND of part this is for assistive technology — the automation peers translate it into their host's control type.

Source

public ArionBitmap? Source { get; set; }

The picture; null shows only the background.

Stretch

public ImageStretch Stretch { get; init; }

How the picture fills the control's box.

Width

public double? Width { get; init; }

Desired width; null takes the width it is given, or the picture's own.

Methods

Measure

public override LogSize Measure(LogSize available);

Desired size given the space available (layout containers sum this).

Render

public override void Render(IRenderSurface s, ControlFrame frame);

SpokenLabel

public override string? SpokenLabel();

What a screen reader speaks when this control receives the focus. A control that cannot take the focus but answers here is READ: it becomes a text part.