# graphicsImagePresentationColorPolicyV1

A graphics image presentation color policy v1 record carrying schema, schemaVersion, sourceColorSpace, sourceAlphaMode, tintColorSpace, 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 graphicsImagePresentationColorPolicyV1
```

- text schema: Stores schema as text.
- int schemaVersion: Stores schema version as int.
- text sourceColorSpace: Stores source color space as text.
- text sourceAlphaMode: Stores source alpha mode as text.
- text tintColorSpace: Stores tint color space as text.
- text destinationColorSpace: Stores destination color space as text.
- text destinationAlphaMode: Stores destination alpha mode as text.
- text workingColorSpace: Stores working color space as text.
- text tintOperation: Stores tint operation 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.
- graphicsImagePresentationColorPolicyV1(text sourceColorSpace, text tintColorSpace, text destinationColorSpace, text outputColorSpace, text source): Graphics image presentation color policy v1.
- ValidationIssue() returns text: Validation issue.
- CacheIdentity(text sourceContentIdentity, text destinationContentIdentity, graphicsImageRgba8V1 sourcePixel, graphicsImageRgb8V1 tint, graphicsImageRgba8V1 destinationPixel, int opacity) returns text: Cache identity.
- Cost(graphicsImageLinearPremultipliedV1 outputPixel) returns graphicsImagePresentationColorCostV1: Cost.
- Snapshot() returns text: Snapshot.

## Use graphicsImagePresentationColorPolicyV1

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.
graphicsImagePresentationColorPolicyV1 sample = graphicsImagePresentationColorPolicyV1("source Color Space", "tint Color Space", "destination Color Space", "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__graphicsimagepresentationcolorpolicyv1"
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--graphicsImagePresentationColorPolicyV1/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImagePresentationColorPolicyV1.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.
graphicsImagePresentationColorPolicyV1 instance = graphicsImagePresentationColorPolicyV1("source Color Space", "tint Color Space", "destination Color Space", "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__graphicsimagepresentationcolorpolicyv1"
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--graphicsImagePresentationColorPolicyV1/method-ValidationIssue-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImagePresentationColorPolicyV1.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.
graphicsImagePresentationColorPolicyV1 instance = graphicsImagePresentationColorPolicyV1("source Color Space", "tint Color Space", "destination Color Space", "output Color Space", "example")
text argument_sourceContentIdentity = "argument source Content Identity"
text argument_destinationContentIdentity = "argument destination Content Identity"
graphicsImageRgba8V1 argument_sourcePixel = graphicsImageRgba8V1(1, 1, 1, 1)
graphicsImageRgb8V1 argument_tint = graphicsImageRgb8V1(1, 1, 1)
graphicsImageRgba8V1 argument_destinationPixel = graphicsImageRgba8V1(1, 1, 1, 1)
int argument_opacity = 1
text result = instance.CacheIdentity(argument_sourceContentIdentity, argument_destinationContentIdentity, argument_sourcePixel, argument_tint, argument_destinationPixel, argument_opacity)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_image_processing__graphicsimagepresentationcolorpolicyv1"
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--graphicsImagePresentationColorPolicyV1/method-CacheIdentity-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImagePresentationColorPolicyV1.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.
graphicsImagePresentationColorPolicyV1 instance = graphicsImagePresentationColorPolicyV1("source Color Space", "tint Color Space", "destination Color Space", "output Color Space", "example")
graphicsImageLinearPremultipliedV1 argument_outputPixel = graphicsImageLinearPremultipliedV1(1, 1, 1, 1)
graphicsImagePresentationColorCostV1 result = instance.Cost(argument_outputPixel)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.graphics_image_processing__graphicsimagepresentationcolorpolicyv1"
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--graphicsImagePresentationColorPolicyV1/method-Cost-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphicsImagePresentationColorPolicyV1.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.
graphicsImagePresentationColorPolicyV1 instance = graphicsImagePresentationColorPolicyV1("source Color Space", "tint Color Space", "destination Color Space", "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__graphicsimagepresentationcolorpolicyv1"
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--graphicsImagePresentationColorPolicyV1/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/presentation_color_v1.yh

AI training permission: https://demonhunterlabs.com/ai-use
