# graphicsImageSamplingPolicyV1

A graphics image sampling policy v1 record carrying schema, schemaVersion, filter, sourceColorSpace, sourceAlphaMode, and related state.

Last updated: 2026-09-09

Package: graphics.image.processing | Status: source-declared

Tags: cpu, graphics, graphics.image.processing, image, method, processing, source-example, thing, yeho

Transform image data through the package's explicit processing contracts.

```yh
external thing graphicsImageSamplingPolicyV1
```

- text schema: Stores schema as text.
- int schemaVersion: Stores schema version as int.
- text filter: Stores filter as text.
- text sourceColorSpace: Stores source color space as text.
- text sourceAlphaMode: Stores source alpha mode as text.
- text workingColorSpace: Stores working color space as text.
- text edgeMode: Stores edge mode as text.
- text transfer: Stores transfer as text.
- text interpolation: Stores interpolation as text.
- text blend: Stores blend as text.
- text outputColorSpace: Stores output color space as text.
- text outputEncoding: Stores output encoding as text.
- text source: Stores source as text.
- graphicsImageSamplingPolicyV1(text filter, text sourceColorSpace, text sourceAlphaMode, text outputColorSpace, text source): Graphics image sampling policy v1.
- ValidationIssue() returns text: Validation issue.
- Cost() returns graphicsImageSamplingCostV1: Cost.
- CacheIdentity(text contentIdentity) returns text: Cache identity.
- Snapshot() returns text: Snapshot.

## Use graphicsImageSamplingPolicyV1

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using graphics.image.processing

// Transform image data through the package's explicit processing contracts.
graphicsImageSamplingPolicyV1 sample = graphicsImageSamplingPolicyV1("filter", "source Color Space", "source Alpha Mode", "output Color Space", "example")
Console.Log(Text.From(sample.schema))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_image_processing__graphicsimagesamplingpolicyv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

```

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/graphics.image.processing--graphicsImageSamplingPolicyV1/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImageSamplingPolicyV1.ValidationIssue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.image.processing

// Validation issue.
graphicsImageSamplingPolicyV1 instance = graphicsImageSamplingPolicyV1("filter", "source Color Space", "source Alpha Mode", "output Color Space", "example")
text result = instance.ValidationIssue()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_image_processing__graphicsimagesamplingpolicyv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

```

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/graphics.image.processing--graphicsImageSamplingPolicyV1/method-ValidationIssue-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImageSamplingPolicyV1.Cost

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.image.processing

// Cost.
graphicsImageSamplingPolicyV1 instance = graphicsImageSamplingPolicyV1("filter", "source Color Space", "source Alpha Mode", "output Color Space", "example")
graphicsImageSamplingCostV1 result = instance.Cost()
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_image_processing__graphicsimagesamplingpolicyv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

```

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/graphics.image.processing--graphicsImageSamplingPolicyV1/method-Cost-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImageSamplingPolicyV1.CacheIdentity

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.image.processing

// Cache identity.
graphicsImageSamplingPolicyV1 instance = graphicsImageSamplingPolicyV1("filter", "source Color Space", "source Alpha Mode", "output Color Space", "example")
text argument_contentIdentity = "argument content Identity"
text result = instance.CacheIdentity(argument_contentIdentity)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_image_processing__graphicsimagesamplingpolicyv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

```

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/graphics.image.processing--graphicsImageSamplingPolicyV1/method-CacheIdentity-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImageSamplingPolicyV1.Snapshot

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using graphics.image.processing

// Snapshot.
graphicsImageSamplingPolicyV1 instance = graphicsImageSamplingPolicyV1("filter", "source Color Space", "source Alpha Mode", "output Color Space", "example")
text result = instance.Snapshot()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_image_processing__graphicsimagesamplingpolicyv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image.processing"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image/processing"

```

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/graphics.image.processing--graphicsImageSamplingPolicyV1/method-Snapshot-17 --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/graphics/image/processing/filter_color_v1.yh

AI training permission: https://demonhunterlabs.com/ai-use
