# LegacyWordImageContent

A recovered graphic with its original WPG1 bytes and a bounded PNG projection.

Class 

`OfficeIMO.Word.Legacy`

**Namespace**

`OfficeIMO.Word.Legacy`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`bff9a667c24d` with working tree changes

**Source**

[LegacyWordContracts.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L87)

**Modifiers**

sealed

A recovered graphic with its original WPG1 bytes and a bounded PNG projection.

## Inheritance

- object
- LegacyWordImageContent

## Usage

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

- Property [LegacyWordRunContent.Image](/api/word/officeimo-word-legacy-legacywordruncontent/#property-image)

Filter members 

Show inherited

## Methods

`public byte[] GetPngBytes()` [#](#method-getpngbytes)

[LegacyWordContracts.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L89)

Returns an independent copy of the recovered PNG image.

Returns

`byte[]`

`public byte[] GetSourceBytes()` [#](#method-getsourcebytes)

[LegacyWordContracts.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L87)

Returns an independent copy of the original WPG1 source data.

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 OfficeLength Width { get; }` [#](#property-width)

[LegacyWordContracts.cs:83](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L83)

Gets the recovered graphic canvas width, before unsupported box overrides.

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

[LegacyWordContracts.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.Word/Legacy/LegacyWordContracts.cs#L85)

Gets the recovered graphic canvas height, before unsupported box overrides.

<!-- PowerForge markdown artifact sha256:2F8AF35F45A6917EFAF7E0B6F758915A36436F9F0F0BCE2A6A98CCB55D6922F7 -->
