OfficeIMO.Drawing
1.0.9
Prefix Reserved
See the version list below for details.
dotnet add package OfficeIMO.Drawing --version 1.0.9
NuGet\Install-Package OfficeIMO.Drawing -Version 1.0.9
<PackageReference Include="OfficeIMO.Drawing" Version="1.0.9" />
<PackageVersion Include="OfficeIMO.Drawing" Version="1.0.9" />
<PackageReference Include="OfficeIMO.Drawing" />
paket add OfficeIMO.Drawing --version 1.0.9
#r "nuget: OfficeIMO.Drawing, 1.0.9"
#:package OfficeIMO.Drawing@1.0.9
#addin nuget:?package=OfficeIMO.Drawing&version=1.0.9
#tool nuget:?package=OfficeIMO.Drawing&version=1.0.9
OfficeIMO.Drawing
OfficeIMO.Drawing is the shared first-party drawing layer for OfficeIMO packages. It provides small color and image metadata primitives without taking a dependency on a raster imaging library.
What It Provides
OfficeColor: immutable RGBA color value with named colors and hex parsing.OfficeFontInfo: immutable font family, size, and style descriptor for Office text features.OfficeFontStyle: dependency-free font style flags.OfficeTextMeasurer: deterministic text measurement estimates for Office layout decisions.OfficeTextMeasurementStyleandOfficeTextMetrics: normalized measurement inputs and pixel metrics.OfficeImageReader: header-only image metadata reader for common Office image formats.OfficeImageInfo: image format, dimensions, DPI, and MIME metadata.OfficeImageFormat: supported format enum used by OfficeIMO packages.
Supported Image Metadata
OfficeImageReader identifies PNG, JPEG, GIF, BMP, TIFF, ICO, PCX, EMF, placeable WMF, and SVG dimensions from headers or markup. It also maps Office-compatible extension-only formats so callers can still choose the right Open XML part type when dimensions are not available.
The reader is intentionally metadata-only. It does not decode pixels, resize, transcode, or validate complete image payloads.
Color Migration
OfficeIMO packages now use OfficeIMO.Drawing.OfficeColor instead of external imaging color types.
using OfficeIMO.Drawing;
var color = OfficeColor.Parse("#336699");
var accent = OfficeColor.CornflowerBlue;
OfficeColor accepts named colors, #RGB, #RGBA, #RRGGBB, and #RRGGBBAA values.
Font Descriptors
OfficeFontInfo records the font family, point size, and style flags without taking a dependency on a font engine.
using OfficeIMO.Drawing;
var font = new OfficeFontInfo("Calibri", 11, OfficeFontStyle.Bold | OfficeFontStyle.Italic | OfficeFontStyle.Underline);
Text Measurement
OfficeTextMeasurer provides deterministic Office-oriented estimates for width and line height. It intentionally does not call operating-system font APIs, so results stay stable across machines.
using OfficeIMO.Drawing;
var measurer = OfficeTextMeasurer.Create(OfficeFontInfo.Default);
var style = measurer.CreateStyle(new OfficeFontInfo("Aptos", 12, OfficeFontStyle.Bold));
OfficeTextMetrics metrics = measurer.Measure("OfficeIMO", style);
Rendering packages can use these estimates for layout planning while keeping public and shared APIs free of font-engine dependencies. Format-specific packages still own their own unit conversions and layout quirks, such as Excel column width units or PDF page coordinates.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on OfficeIMO.Drawing:
| Package | Downloads |
|---|---|
|
OfficeIMO.Word
An Open Source cross-platform .NET library providing an easy way to create Microsoft Word (DocX) documents. |
|
|
OfficeIMO.Excel
An Open Source cross-platform .NET library providing an easy way to create Excel documents. |
|
|
OfficeIMO.Word.Markdown
Markdown converter for OfficeIMO.Word - Convert Word documents to/from Markdown using OfficeIMO.Markdown |
|
|
OfficeIMO.Word.Html
HTML converter for OfficeIMO.Word - Convert Word documents to/from HTML using AngleSharp |
|
|
OfficeIMO.Pdf
Dependency-free PDF builder and reader for .NET with fluent document composition, standard PDF fonts, basic layout primitives, and no runtime package dependencies. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on OfficeIMO.Drawing:
| Repository | Stars |
|---|---|
|
EvotecIT/PSWriteOffice
PowerShell Module to create and edit Microsoft Word, Microsoft Excel, and Microsoft PowerPoint documents without having Microsoft Office installed.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.13 | 1,042 | 5/27/2026 |
| 1.0.12 | 629 | 5/26/2026 |
| 1.0.11 | 561 | 5/26/2026 |
| 1.0.10 | 965 | 5/23/2026 |
| 1.0.9 | 579 | 5/22/2026 |
| 1.0.8 | 551 | 5/21/2026 |
| 1.0.7 | 547 | 5/21/2026 |
| 1.0.6 | 633 | 5/20/2026 |
| 1.0.5 | 587 | 5/19/2026 |
| 1.0.4 | 609 | 5/18/2026 |
| 1.0.3 | 847 | 5/16/2026 |
| 1.0.2 | 558 | 5/14/2026 |
| 1.0.1 | 797 | 5/14/2026 |
| 1.0.0 | 1,746 | 5/7/2026 |