# PdfImageSourceCrop

Describes a source-image crop rectangle using fractions of the original image edges.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfImageSourceCrop.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageSourceCrop.cs#L15)

**Modifiers**

sealed

Describes a source-image crop rectangle using fractions of the original image edges.

## Inheritance

- object
- PdfImageSourceCrop

## 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 [PdfImageStyle.SourceCrop](/api/pdf/officeimo-pdf-pdfimagestyle/#property-sourcecrop)

Filter members 

Show inherited

## Constructors

PdfImageSourceCrop 2 overloads

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

[PdfImageSourceCrop.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageSourceCrop.cs#L15)

Creates a crop rectangle with no cropped edges.

`public PdfImageSourceCrop(double left, double top, double right, double bottom)` [#](#constructor-ctor-double-double-double-double)

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

Creates a crop rectangle using fractions from 0 to less than 1 for each edge.

Parameters

**left double required**

**top double required**

**right double required**

**bottom double 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 double Left { get; set; }` [#](#property-left)

[PdfImageSourceCrop.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageSourceCrop.cs#L25)

Fraction cropped from the left edge of the source image.

`public double Top { get; set; }` [#](#property-top)

[PdfImageSourceCrop.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageSourceCrop.cs#L31)

Fraction cropped from the top edge of the source image.

`public double Right { get; set; }` [#](#property-right)

[PdfImageSourceCrop.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageSourceCrop.cs#L37)

Fraction cropped from the right edge of the source image.

`public double Bottom { get; set; }` [#](#property-bottom)

[PdfImageSourceCrop.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfImageSourceCrop.cs#L43)

Fraction cropped from the bottom edge of the source image.

<!-- PowerForge markdown artifact sha256:70584264742CFCD06E7F5167D082AF4A73CD58B01128D0BD98C87BF1EAABB64F -->
