# IWorkPagesImage

An immutable PNG or JPEG occupying its own inline Pages body paragraph.

Class 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[IWorkPagesImage.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L25)

**Base**

`IWorkPagesBodyBlock`

**Modifiers**

sealed

An immutable PNG or JPEG occupying its own inline Pages body paragraph.

## Inheritance

- [IWorkPagesBodyBlock](/api/iwork/officeimo-iwork-iworkpagesbodyblock/)
- IWorkPagesImage

## Usage

Explore 2 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

- Method [IWorkPagesDocument.AddImage](/api/iwork/officeimo-iwork-iworkpagesdocument/#method-addimage-byte-single-single-string-threading-cancellationtoken)
- Property [IWorkPagesDocument.Images](/api/iwork/officeimo-iwork-iworkpagesdocument/#property-images)

Filter members 

Show inherited

## Methods

`public byte[] GetBytes()` [#](#method-getbytes)

[IWorkPagesImage.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L25)

Returns a copy of the validated encoded payload.

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 IWorkGeometry Geometry { get; }` [#](#property-geometry)

[IWorkPagesImage.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L13)

Gets the zero-offset frame in points. The complete image fills this frame without a crop or mask.

`public int PixelWidth { get; }` [#](#property-pixelwidth)

[IWorkPagesImage.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L15)

Gets the validated pixel width.

`public int PixelHeight { get; }` [#](#property-pixelheight)

[IWorkPagesImage.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L17)

Gets the validated pixel height.

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

[IWorkPagesImage.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L19)

Gets image/png or image/jpeg.

`public int Length { get; }` [#](#property-length)

[IWorkPagesImage.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L21)

Gets the encoded payload size in bytes.

`public string? AccessibilityDescription { get; }` [#](#property-accessibilitydescription)

[IWorkPagesImage.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkPagesImage.cs#L23)

Gets the optional native accessibility description.

<!-- PowerForge markdown artifact sha256:DEB1221E02663A4D8641D4C0689508B907EE2E2853DF4B05B8B424573BA482E2 -->
