# OfficeAiImage

A source-bound inline image; payload access returns a defensive copy.

Class 

`OfficeIMO.AI`

**Namespace**

`OfficeIMO.AI`

**Assembly**

`OfficeIMO.AI`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeAiExecution.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L48)

**Modifiers**

sealed

A source-bound inline image; payload access returns a defensive copy.

## Inheritance

- object
- OfficeAiImage

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [OfficeAiDocument.Images](/api/ai/officeimo-ai-officeaidocument/#property-images)
- Property [OfficeAiExecutionRequest.Images](/api/ai/officeimo-ai-officeaiexecutionrequest/#property-images)

### Accepted by parameters 3

- Method [OfficeAiDocument.FromReadResult](/api/ai/officeimo-ai-officeaidocument/#method-fromreadresult-byte-officeimo-reader-officedocumentreadresult-collections-generic-ienumerable-officeimo-ai-officeaiimage-officeimo-ai-officeailimits) parameter `images`
- Constructor [OfficeAiExecutionRequest.OfficeAiExecutionRequest](/api/ai/officeimo-ai-officeaiexecutionrequest/#constructor-ctor-string-string-string-string-collections-generic-ireadonlylist-officeimo-ai-officeaiimage-int32) parameter `Images`
- Method [OfficeAiExecutionRequest.Deconstruct](/api/ai/officeimo-ai-officeaiexecutionrequest/#method-deconstruct-string-string-string-string-ireadonlylist-officeaiimage-int32) parameter `Images`

Filter members 

Show inherited

## Constructors

`public OfficeAiImage(string id, int page, string mediaType, byte[] bytes, int width, int height)` [#](#constructor-ctor-string-int32-string-byte-int32-int32)

[OfficeAiExecution.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L48)

Creates an image whose dimensions must have been verified by the image-producing owner.

Parameters

**id string required**

**page int required**

**mediaType string required**

**bytes byte[] required**

**width int required**

**height int required**

## Methods

`public byte[] CopyBytes()` [#](#method-copybytes)

[OfficeAiExecution.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L72)

Copies the payload for a transport without exposing mutable snapshot state.

Returns

`byte[]`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Id { get; }` [#](#property-id)

[OfficeAiExecution.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L58)

Evidence identifier within its source snapshot.

`public int Page { get; }` [#](#property-page)

[OfficeAiExecution.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L60)

One-based source page.

`public string MediaType { get; }` [#](#property-mediatype)

[OfficeAiExecution.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L62)

Encoded media type.

`public int Width { get; }` [#](#property-width)

[OfficeAiExecution.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L64)

Decoded width supplied by the image owner.

`public int Height { get; }` [#](#property-height)

[OfficeAiExecution.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L66)

Decoded height supplied by the image owner.

`public int ByteLength { get; }` [#](#property-bytelength)

[OfficeAiExecution.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L68)

Encoded payload length.

`public string ContentHash { get; }` [#](#property-contenthash)

[OfficeAiExecution.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI/OfficeAiExecution.cs#L70)

SHA-256 of the immutable encoded payload.

<!-- PowerForge markdown artifact sha256:38FD413296B7666D959F087303995E535FB9A5CF1C1591C6C9907EEEEE6662B6 -->
