ImageSource
- Kind: Record class
- Namespace: SkeleKit
- Implements:
IEquatable<ImageSource>
Properties
Kind
How Value should be resolved.
Type: ImageSourceKind
PrefersMulticolor
Whether a symbol with a built-in multicolor rendition should use it.
Type: bool
SymbolColors
Colors for the symbol's layers: one gives the hierarchical look, while several define a palette.
Type: IReadOnlyList<Color>
SymbolScale
The symbol's relative scale within its font metrics.
Type: SymbolScale
SymbolSize
The symbol's point size, or NaN to let the consuming control choose.
Type: double
SymbolWeight
The symbol's stroke weight, or null to let the consuming control choose.
Type: FontWeight?
Value
The symbol name, bundle asset name, or URL.
Type: string
Methods
Bundle
An image from a bundle asset name.
| Parameter | Summary |
|---|---|
string name | The name of the asset in the bundle. |
Returns
ImageSource: An image source configured for a bundle asset.
Data
An image from raw encoded bytes.
| Parameter | Summary |
|---|---|
byte bytes | The encoded image data. |
Returns
ImageSource: An image source configured for in-memory data.
Symbol
An image from an SF Symbol name.
| Parameter | Summary |
|---|---|
string name | The name of the system symbol. |
Returns
ImageSource: An image source configured for a symbol.
Symbol
An image from an SF Symbol name with rendering configuration.
| Parameter | Summary |
|---|---|
string name | The name of the system symbol. |
(optional) double size | The symbol's point size, or NaN to let the consuming control choose. |
(optional) FontWeight? weight | The symbol's stroke weight, or null to let the consuming control choose. |
(optional) SymbolScale scale | The symbol's relative scale within its font metrics. |
(optional) bool prefersMulticolor | Whether to prefer the symbol's built-in multicolor rendition. |
Color colors | Colors for hierarchical or palette rendering. |
Returns
ImageSource: An image source configured for a symbol.
Url
An image from a remote URL, loaded asynchronously.
Supported by
Image.Sourceand sharing. Compact control icons accept local sources only.
| Parameter | Summary |
|---|---|
string url | The full web address of the image. |
Returns
ImageSource: An image source configured for a URL.
Operators
Implicit ImageSource(string)
Treats a string as a URL when it looks like one, otherwise resolves it automatically.
| Parameter | Summary |
|---|---|
string value | The string value to convert. |
Returns
ImageSource: An image source for the string.