# OfficeImageExportLimitException

Thrown when a raster export exceeds a configured allocation or encoder limit.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeImageExportLimitException.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L46)

**Base**

`InvalidOperationException`

**Implements**

`ISerializable`

**Modifiers**

sealed

Thrown when a raster export exceeds a configured allocation or encoder limit.

## Inheritance

- InvalidOperationException
- OfficeImageExportLimitException

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual Exception GetBaseException()` [#](#method-getbaseexception)

Inherited from Exception

Returns

`Exception`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public virtual void GetObjectData(SerializationInfo info, StreamingContext context)` [#](#method-getobjectdata-serializationinfo-streamingcontext)

Inherited from Exception

`Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")` `EditorBrowsable(1)`

Parameters

**info SerializationInfo required**

**context StreamingContext required**

`public Type GetType()` [#](#method-gettype)

Inherited from Exception

Returns

`Type`

`public override string ToString()` [#](#method-tostring)

Inherited from Exception

Returns

`string`

## Properties

`public double RequestedScale { get; }` [#](#property-requestedscale)

[OfficeImageExportLimitException.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L46)

Caller-requested scale.

`public long RequestedPixels { get; }` [#](#property-requestedpixels)

[OfficeImageExportLimitException.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L49)

Requested pixel count, or long.MaxValue when it exceeded numeric bounds.

`public long MaximumPixels { get; }` [#](#property-maximumpixels)

[OfficeImageExportLimitException.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L52)

Effective pixel-count ceiling.

`public int MaximumDimension { get; }` [#](#property-maximumdimension)

[OfficeImageExportLimitException.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L55)

Effective per-dimension ceiling.

`public OfficeImageExportFormat? Format { get; }` [#](#property-format)

[OfficeImageExportLimitException.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L58)

Encoder format whose density floor was exceeded, when applicable.

`public double? EffectiveDpiX { get; }` [#](#property-effectivedpix)

[OfficeImageExportLimitException.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L61)

Derived horizontal density that could not be represented, when applicable.

`public double? EffectiveDpiY { get; }` [#](#property-effectivedpiy)

[OfficeImageExportLimitException.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L64)

Derived vertical density that could not be represented, when applicable.

`public double? MinimumDpi { get; }` [#](#property-minimumdpi)

[OfficeImageExportLimitException.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeImageExportLimitException.cs#L67)

Minimum density supported by the selected encoder, when applicable.

## Inherited Properties

`public MethodBase? TargetSite { get; }` [#](#property-targetsite)

Inherited from Exception

`public virtual string Message { get; }` [#](#property-message)

Inherited from Exception

`public virtual IDictionary Data { get; }` [#](#property-data)

Inherited from Exception

`public Exception? InnerException { get; }` [#](#property-innerexception)

Inherited from Exception

`public virtual string? HelpLink { get; set; }` [#](#property-helplink)

Inherited from Exception

`public virtual string? Source { get; set; }` [#](#property-source)

Inherited from Exception

`public int HResult { get; set; }` [#](#property-hresult)

Inherited from Exception

`public virtual string? StackTrace { get; }` [#](#property-stacktrace)

Inherited from Exception

<!-- PowerForge markdown artifact sha256:BB7373E3F854B57C9AD8E6363366C748F36AA080DDD0340C6018ED86B3805991 -->
