# OfficeInkRenderer

Projects format-neutral ink strokes into the shared drawing scene.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeInkRenderer.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkRenderer.cs#L42)

**Modifiers**

static

Projects format-neutral ink strokes into the shared drawing scene.

## Inheritance

- object
- OfficeInkRenderer

Filter members 

Show inherited

## Methods

`public static void AddToDrawing(OfficeDrawing drawing, OfficeInkDocument ink, double offsetX = 0, double offsetY = 0, OfficeInkRenderOptions? options = null)` [#](#method-addtodrawing-officeimo-drawing-officedrawing-officeimo-drawing-officeinkdocument-double-double-officeimo-drawing-officeinkrenderoptions)

[OfficeInkRenderer.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkRenderer.cs#L70)

Adds ink to an existing drawing at an optional destination offset.

Parameters

**drawing OfficeIMO.Drawing.OfficeDrawing required**

**ink OfficeIMO.Drawing.OfficeInkDocument required**

**offsetX double = 0 optional**

**offsetY double = 0 optional**

**options OfficeIMO.Drawing.OfficeInkRenderOptions? = null optional**

`public static double GetEffectiveOpacity(OfficeInkStroke stroke, double highlighterOpacityFactor = 0.4)` [#](#method-geteffectiveopacity-officeimo-drawing-officeinkstroke-double)

[OfficeInkRenderer.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Ink/OfficeInkRenderer.cs#L42)

Returns the effective rendered opacity, including color alpha and highlighter behavior.

Parameters

**stroke OfficeIMO.Drawing.OfficeInkStroke required**

**highlighterOpacityFactor double = 0.4 optional**

Returns

`double`

`public static OfficeDrawing Render(OfficeInkDocument ink, double width, double height, OfficeInkRenderOptions? options = null)` [#](#method-render-officeimo-drawing-officeinkdocument-double-double-officeimo-drawing-officeinkrenderoptions)

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

Creates a new drawing containing the supplied ink.

Parameters

**ink OfficeIMO.Drawing.OfficeInkDocument required**

**width double required**

**height double required**

**options OfficeIMO.Drawing.OfficeInkRenderOptions? = null optional**

Returns

`OfficeDrawing`

## 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?`

<!-- PowerForge markdown artifact sha256:9A0401A7C1D15C685C50D1D51B0D6B74F9FD1D08E9846A77516A0692019C72A3 -->
