# PdfImageAlignment enum

> Where an image sits in its box when it does not fill it exactly.

Namespace: [PdfNetStack.Drawing](https://www.jadev-corp.com/api/pdfnetstack-drawing/)  
Assembly: PdfNetStack.dll  
Package: `PdfNetStack`

Where an image sits in its box when it does not fill it exactly.

```csharp
public enum PdfImageAlignment
```

## Fields

`TopLeft = 0` 

Against the top left corner.

`Top = 1` 

Centered along the top edge.

`TopRight = 2` 

Against the top right corner.

`Left = 3` 

Centered along the left edge.

`Center = 4` 

Centered.

`Right = 5` 

Centered along the right edge.

`BottomLeft = 6` 

Against the bottom left corner.

`Bottom = 7` 

Centered along the bottom edge.

`BottomRight = 8` 

Against the bottom right corner.

## Used in

- [Add images to PDF in C# and .NET](https://www.jadev-corp.com/guides/images/)

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-drawing/pdfimagealignment/
