# yuiRenderImagePresentation

A yui render image presentation record carrying fit, filter, outputColorSpace, samplingCacheIdentity, sourceX, and related state.

Last updated: 2026-09-09

Package: ui | Status: source-declared

Tags: cpu, method, source-example, thing, ui, yeho

Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.

```yh
external thing yuiRenderImagePresentation
```

- text fit: Stores fit as text.
- text filter: Stores filter as text.
- text outputColorSpace: Stores output color space as text.
- text samplingCacheIdentity: Stores sampling cache identity as text.
- int sourceX: Stores source x as int.
- int sourceY: Stores source y as int.
- int sourceWidth: Stores source width as int.
- int sourceHeight: Stores source height as int.
- int naturalWidth: Stores natural width as int.
- int naturalHeight: Stores natural height as int.
- int sliceLeft: Stores slice left as int.
- int sliceTop: Stores slice top as int.
- int sliceRight: Stores slice right as int.
- int sliceBottom: Stores slice bottom as int.
- int destinationSliceLeft: Stores destination slice left as int.
- int destinationSliceTop: Stores destination slice top as int.
- int destinationSliceRight: Stores destination slice right as int.
- int destinationSliceBottom: Stores destination slice bottom as int.
- yuiRenderImagePresentation(text fit, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int sliceLeft, int sliceTop, int sliceRight, int sliceBottom): Yui render image presentation.
- UsesWholeSource() returns bool: Uses whole source.
- UsesLinearSampling() returns bool: Uses linear sampling.
- HasExplicitSamplingPolicy() returns bool: Has explicit sampling policy.
- UsesNineSlice() returns bool: Uses nine slice.
- UsesExplicitSizing() returns bool: Uses explicit sizing.
- ResolvedNaturalWidth(int sourceWidth) returns int: Resolved natural width.
- ResolvedNaturalHeight(int sourceHeight) returns int: Resolved natural height.
- ValidationIssue(int imageWidth, int imageHeight) returns text: Validation issue.
- Describe() returns text: Describe.

## Use yuiRenderImagePresentation

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using ui

// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
yuiRenderImagePresentation sample = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
Console.Log(Text.From(sample.fit))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.UsesWholeSource

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Uses whole source.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesWholeSource()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-UsesWholeSource-19 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.UsesLinearSampling

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Uses linear sampling.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesLinearSampling()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-UsesLinearSampling-20 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.HasExplicitSamplingPolicy

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Has explicit sampling policy.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.HasExplicitSamplingPolicy()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-HasExplicitSamplingPolicy-21 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.UsesNineSlice

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Uses nine slice.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesNineSlice()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-UsesNineSlice-22 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.UsesExplicitSizing

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Uses explicit sizing.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
bool result = instance.UsesExplicitSizing()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-UsesExplicitSizing-23 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.ResolvedNaturalWidth

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Resolved natural width.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
int argument_sourceWidth = 1
int result = instance.ResolvedNaturalWidth(argument_sourceWidth)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-ResolvedNaturalWidth-24 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.ResolvedNaturalHeight

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Resolved natural height.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
int argument_sourceHeight = 1
int result = instance.ResolvedNaturalHeight(argument_sourceHeight)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-ResolvedNaturalHeight-25 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.ValidationIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Validation issue.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
int argument_imageWidth = 1
int argument_imageHeight = 1
text result = instance.ValidationIssue(argument_imageWidth, argument_imageHeight)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-ValidationIssue-26 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRenderImagePresentation.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Describe.
yuiRenderImagePresentation instance = yuiRenderImagePresentation("fit", 1, 1, 1, 1, 1, 1, 1, 1)
text result = instance.Describe()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuirenderimagepresentation"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiRenderImagePresentation/method-Describe-27 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/ui/render-00-definitions.yh

AI training permission: https://demonhunterlabs.com/ai-use
