# PdfInlineImage

Raster image that flows between text runs as one indivisible inline element.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfInlineElement.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L76)

**Base**

`PdfInlineElement`

**Modifiers**

sealed

Raster image that flows between text runs as one indivisible inline element.

## Inheritance

- [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)
- PdfInlineImage

Filter members 

Show inherited

## Constructors

PdfInlineImage 3 overloads

`public PdfInlineImage(byte[] imageBytes, OfficeLength width, OfficeLength height, string? altText = null, OfficeImageFit fit = Contain, OfficeLength baselineOffset = default)` [#](#constructor-ctor-byte-officeimo-officelength-officeimo-officelength-string-officeimo-drawing-officeimagefit-officeimo-officelength)

[PdfInlineElement.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L76)

Creates an inline image from first-party supported image bytes.

Parameters

**imageBytes byte[] required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**altText string? = null optional**

**fit OfficeIMO.Drawing.OfficeImageFit = Contain optional**

**baselineOffset OfficeIMO.OfficeLength = default optional**

`public PdfInlineImage(byte[] imageBytes, OfficeLength width, OfficeLength height, PdfImageStyle style, OfficeLength baselineOffset)` [#](#constructor-ctor-byte-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdfimagestyle-officeimo-officelength)

[PdfInlineElement.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L85)

Creates an inline image with source crop, rotation, mirrors and alternate text from a reusable image style.

Parameters

**imageBytes byte[] required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**style OfficeIMO.Pdf.PdfImageStyle required**

**baselineOffset OfficeIMO.OfficeLength required**

`public PdfInlineImage(OfficeDrawing drawing, OfficeLength width, OfficeLength height, string? altText, OfficeLength baselineOffset)` [#](#constructor-ctor-officeimo-drawing-officedrawing-officeimo-officelength-officeimo-officelength-string-officeimo-officelength)

[PdfInlineElement.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L117)

Creates an inline vector drawing, such as a chart or a shape, that flows between text runs like a picture.

Parameters

**drawing OfficeIMO.Drawing.OfficeDrawing required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**altText string? required**

**baselineOffset OfficeIMO.OfficeLength required**

## 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 OfficeImageFit Fit { get; }` [#](#property-fit)

[PdfInlineElement.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L66)

Image fitting mode inside the requested inline frame.

## Inherited Properties

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

[PdfInlineElement.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L10)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

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

[PdfInlineElement.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L13)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public OfficeLength BaselineOffset { get; }` [#](#property-baselineoffset)

[PdfInlineElement.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L16)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public string? AltText { get; }` [#](#property-alttext)

[PdfInlineElement.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L19)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

<!-- PowerForge markdown artifact sha256:9414B3310D05C1E83399B52BF5F5C7C49A4206468913A727976EA70AFE345CCC -->
