# PdfImageStyle

Reusable image placement and rhythm style.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfImageStyle.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L104)

**Modifiers**

sealed

Reusable image placement and rhythm style.

## Inheritance

- object
- PdfImageStyle

## Usage

Explore 11 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 4

- Property [PdfCreateOptions.DefaultImageStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-defaultimagestyle)
- Method [PdfImageStyle.Clone](/api/pdf/officeimo-pdf-pdfimagestyle/#method-clone)
- Property [PdfTableCellImage.Style](/api/pdf/officeimo-pdf-pdftablecellimage/#property-style)
- Property [PdfTheme.ImageStyle](/api/pdf/officeimo-pdf-pdftheme/#property-imagestyle)

### Accepted by parameters 7

- Method [PdfContentBuilder.AddImage](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addimage-byte-officeimo-officelength-officeimo-officelength-nullable-officeimo-officealignment-officeimo-drawing-officeclippath-nullable-officeimo-drawing-officeimagefit-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfimagestyle-string-string-string) parameter `style`
- Method [PdfDocument.AddImage](/api/pdf/officeimo-pdf-pdfdocument/#method-addimage-byte-officeimo-officelength-officeimo-officelength-nullable-officeimo-officealignment-officeimo-drawing-officeclippath-nullable-officeimo-drawing-officeimagefit-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfimagestyle-string-string-string) parameter `style`
- Constructor [PdfHeaderFooterImage.PdfHeaderFooterImage](/api/pdf/officeimo-pdf-pdfheaderfooterimage/#constructor-ctor-byte-officeimo-officelength-officeimo-officelength-officeimo-officealignment-officeimo-pdf-pdfimagestyle) parameter `style`
- Constructor [PdfInlineImage.PdfInlineImage](/api/pdf/officeimo-pdf-pdfinlineimage/#constructor-ctor-byte-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdfimagestyle-officeimo-officelength) parameter `style`
- Method [PdfPageBuilder.DefaultImageStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaultimagestyle-officeimo-pdf-pdfimagestyle) parameter `style`
- Method [PdfPageCanvas.Image](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-image-byte-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdfimagestyle-string-string-string-double) parameter `style`
- Constructor [PdfTableCellImage.PdfTableCellImage](/api/pdf/officeimo-pdf-pdftablecellimage/#constructor-ctor-byte-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdfimagestyle-string-string) parameter `style`

Filter members 

Show inherited

## Constructors

`public PdfImageStyle()` [#](#constructor-ctor)

## Methods

`public PdfImageStyle Clone()` [#](#method-clone)

[PdfImageStyle.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L104)

Creates a copy of this image style.

Returns

`PdfImageStyle`

## 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 OfficeAlignment Align { get; set; }` [#](#property-align)

[PdfImageStyle.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L20)

Image alignment within the current content frame.

`public OfficeImageFit Fit { get; set; }` [#](#property-fit)

[PdfImageStyle.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L29)

How the image is fitted inside its target box.

`public OfficeClipPath? ClipPath { get; set; }` [#](#property-clippath)

[PdfImageStyle.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L38)

Optional clipping path applied inside the image target box.

`public PdfImageSourceCrop? SourceCrop { get; set; }` [#](#property-sourcecrop)

[PdfImageStyle.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L44)

Optional source crop applied before fitting the image into the target box.

`public OfficeLength SpacingBefore { get; set; }` [#](#property-spacingbefore)

[PdfImageStyle.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L50)

Vertical space before the image in the surrounding document flow, in points.

`public OfficeLength SpacingAfter { get; set; }` [#](#property-spacingafter)

[PdfImageStyle.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L59)

Vertical space after the image in the surrounding document flow, in points.

`public bool KeepWithNext { get; set; }` [#](#property-keepwithnext)

[PdfImageStyle.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L67)

Moves the image to the next page with the first visible part of the following block when they fit together.

`public bool ScaleDownToFit { get; set; }` [#](#property-scaledowntofit)

[PdfImageStyle.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L70)

When true, oversized flow images are proportionally reduced to fit the current page or column frame.

`public double RotationAngle { get; set; }` [#](#property-rotationangle)

[PdfImageStyle.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L74)

Clockwise image rotation angle in degrees.

`public bool HorizontalFlip { get; set; }` [#](#property-horizontalflip)

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

Mirrors the cropped image horizontally about its destination frame center before rotation.

`public bool VerticalFlip { get; set; }` [#](#property-verticalflip)

[PdfImageStyle.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L88)

Mirrors the cropped image vertically about its destination frame center before rotation.

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

[PdfImageStyle.cs:92](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageStyle.cs#L92)

Optional alternate text for meaningful generated images.

<!-- PowerForge markdown artifact sha256:7EF6AB0F987C7E06EC5059F6D59FE3977892C55020A368F0BDE43CAEA3945719 -->
