# OdtImage

An XML-backed ODT image frame.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdtImage.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtImage.cs#L43)

**Modifiers**

sealed

An XML-backed ODT image frame.

## Inheritance

- object
- OdtImage

## Usage

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

- Property [OdtInlineNode.Image](/api/open-document/officeimo-opendocument-odtinlinenode/#property-image)
- Method [OdtParagraph.AddImage](/api/open-document/officeimo-opendocument-odtparagraph/#method-addimage-byte-string-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odtimageanchor)
- Property [OdtParagraph.Images](/api/open-document/officeimo-opendocument-odtparagraph/#property-images)

Filter members 

Show inherited

## Methods

`public byte[] GetImageBytes()` [#](#method-getimagebytes)

[OdtImage.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtImage.cs#L43)

Returns a defensive copy of the embedded image bytes.

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 Path { get; }` [#](#property-path)

[OdtImage.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtImage.cs#L25)

Package-relative image path.

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

[OdtImage.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtImage.cs#L28)

Frame width.

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

[OdtImage.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtImage.cs#L33)

Frame height.

`public OdtImageAnchor Anchor { get; set; }` [#](#property-anchor)

[OdtImage.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtImage.cs#L38)

Image anchor mode.

<!-- PowerForge markdown artifact sha256:6160AEFE0ECA26B8DFAB0E194E7BF456C483188B09A08B47C0A64FBC623B3E69 -->
