# CodeGlyphDrawingExtensions

Converts typed CodeGlyphX symbols to OfficeIMO.Drawing scenes through the neutral SVG boundary.

Class 

`OfficeIMO.Drawing.CodeGlyphX`

**Namespace**

`OfficeIMO.Drawing.CodeGlyphX`

**Assembly**

`OfficeIMO.Drawing.CodeGlyphX`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[CodeGlyphDrawingExtensions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.CodeGlyphX/CodeGlyphDrawingExtensions.cs#L14)

**Modifiers**

static

Converts typed CodeGlyphX symbols to OfficeIMO.Drawing scenes through the neutral SVG boundary.

## Inheritance

- object
- CodeGlyphDrawingExtensions

Filter members 

Show inherited

## Methods

ToOfficeDrawing 6 overloads

`public static OfficeDrawing ToOfficeDrawing(QrCode qrCode, QrSvgRenderOptions? options = null)` [#](#method-toofficedrawing-codeglyphx-qrcode-codeglyphx-rendering-svg-qrsvgrenderoptions)

[CodeGlyphDrawingExtensions.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.CodeGlyphX/CodeGlyphDrawingExtensions.cs#L14)

Renders a QR code and imports it as an OfficeIMO drawing.

Parameters

**qrCode CodeGlyphX.QrCode required**

**options CodeGlyphX.Rendering.Svg.QrSvgRenderOptions? = null optional**

Returns

`OfficeDrawing`

Exceptions

- `NotSupportedException` – The SVG options include a raster logo that the drawing importer cannot preserve.

`public static OfficeDrawing ToOfficeDrawing(QrCode qrCode, out int unsupportedFeatureCount, QrSvgRenderOptions? options = null)` [#](#method-toofficedrawing-codeglyphx-qrcode-int32-codeglyphx-rendering-svg-qrsvgrenderoptions)

[CodeGlyphDrawingExtensions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.CodeGlyphX/CodeGlyphDrawingExtensions.cs#L22)

Renders a QR code and imports it while reporting SVG features that required fallback.

Parameters

**qrCode CodeGlyphX.QrCode required**

**unsupportedFeatureCount int required**

**options CodeGlyphX.Rendering.Svg.QrSvgRenderOptions? = null optional**

Returns

`OfficeDrawing`

Exceptions

- `NotSupportedException` – The SVG options include a raster logo that the drawing importer cannot preserve.

`public static OfficeDrawing ToOfficeDrawing(BitMatrix modules, MatrixSvgRenderOptions? options = null)` [#](#method-toofficedrawing-codeglyphx-bitmatrix-codeglyphx-rendering-svg-matrixsvgrenderoptions)

[CodeGlyphDrawingExtensions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.CodeGlyphX/CodeGlyphDrawingExtensions.cs#L35)

Renders a generic matrix symbol and imports it as an OfficeIMO drawing.

Parameters

**modules CodeGlyphX.BitMatrix required**

**options CodeGlyphX.Rendering.Svg.MatrixSvgRenderOptions? = null optional**

Returns

`OfficeDrawing`

`public static OfficeDrawing ToOfficeDrawing(BitMatrix modules, out int unsupportedFeatureCount, MatrixSvgRenderOptions? options = null)` [#](#method-toofficedrawing-codeglyphx-bitmatrix-int32-codeglyphx-rendering-svg-matrixsvgrenderoptions)

[CodeGlyphDrawingExtensions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.CodeGlyphX/CodeGlyphDrawingExtensions.cs#L42)

Renders a generic matrix symbol and imports it while reporting SVG features that required fallback.

Parameters

**modules CodeGlyphX.BitMatrix required**

**unsupportedFeatureCount int required**

**options CodeGlyphX.Rendering.Svg.MatrixSvgRenderOptions? = null optional**

Returns

`OfficeDrawing`

`public static OfficeDrawing ToOfficeDrawing(Barcode1D barcode, BarcodeSvgRenderOptions? options = null)` [#](#method-toofficedrawing-codeglyphx-barcode1d-codeglyphx-rendering-svg-barcodesvgrenderoptions)

[CodeGlyphDrawingExtensions.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.CodeGlyphX/CodeGlyphDrawingExtensions.cs#L49)

Renders a linear barcode and imports it as an OfficeIMO drawing.

Parameters

**barcode CodeGlyphX.Barcode1D required**

**options CodeGlyphX.Rendering.Svg.BarcodeSvgRenderOptions? = null optional**

Returns

`OfficeDrawing`

`public static OfficeDrawing ToOfficeDrawing(Barcode1D barcode, out int unsupportedFeatureCount, BarcodeSvgRenderOptions? options = null)` [#](#method-toofficedrawing-codeglyphx-barcode1d-int32-codeglyphx-rendering-svg-barcodesvgrenderoptions)

[CodeGlyphDrawingExtensions.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.CodeGlyphX/CodeGlyphDrawingExtensions.cs#L56)

Renders a linear barcode and imports it while reporting SVG features that required fallback.

Parameters

**barcode CodeGlyphX.Barcode1D required**

**unsupportedFeatureCount int required**

**options CodeGlyphX.Rendering.Svg.BarcodeSvgRenderOptions? = 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:BFC42F7C85D6D34FD71E9A3B7335A94E971B4DDB7A796FD4E0B85B9EA9C0E707 -->
