# OfficeDrawingImagePattern

Clipped repeating image pattern inside an OfficeDrawing canvas.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeDrawingImagePattern.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingImagePattern.cs#L10)

**Base**

`OfficeDrawingElement`

**Modifiers**

sealed

Clipped repeating image pattern inside an [OfficeDrawing](/api/core/officeimo-drawing-officedrawing/) canvas.

## Inheritance

- [OfficeDrawingElement](/api/core/officeimo-drawing-officedrawingelement/)
- OfficeDrawingImagePattern

## 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 [OfficeDrawing.ImagePatterns](/api/core/officeimo-drawing-officedrawing/#property-imagepatterns)

Filter members 

Show inherited

## Constructors

`public OfficeDrawingImagePattern(byte[] bytes, string? contentType, OfficeImagePatternLayout layout, int maximumTileCount = 16384, double opacity = 1)` [#](#constructor-ctor-byte-string-officeimo-drawing-officeimagepatternlayout-int32-double)

[OfficeDrawingImagePattern.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingImagePattern.cs#L10)

Creates a bounded image-pattern element.

Parameters

**bytes byte[] required**

**contentType string? required**

**layout OfficeIMO.Drawing.OfficeImagePatternLayout required**

**maximumTileCount int = 16384 optional**

**opacity double = 1 optional**

## 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 byte[] Bytes { get; }` [#](#property-bytes)

[OfficeDrawingImagePattern.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingImagePattern.cs#L48)

Detached encoded source-image bytes.

`public string ContentType { get; }` [#](#property-contenttype)

[OfficeDrawingImagePattern.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingImagePattern.cs#L51)

Normalized image media type, when available.

`public OfficeImagePatternLayout Layout { get; }` [#](#property-layout)

[OfficeDrawingImagePattern.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingImagePattern.cs#L54)

Pattern area, origin tile, and repeat axes.

`public int MaximumTileCount { get; }` [#](#property-maximumtilecount)

[OfficeDrawingImagePattern.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingImagePattern.cs#L57)

Maximum tile count accepted by expansion-based backends.

`public double Opacity { get; }` [#](#property-opacity)

[OfficeDrawingImagePattern.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeDrawingImagePattern.cs#L60)

Element opacity from 0 transparent to 1 opaque.

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