OfficeIMO.Drawing 1.0.5

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package OfficeIMO.Drawing --version 1.0.5
                    
NuGet\Install-Package OfficeIMO.Drawing -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Drawing" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Drawing" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Drawing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Drawing --version 1.0.5
                    
#r "nuget: OfficeIMO.Drawing, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Drawing@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Drawing&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Drawing&version=1.0.5
                    
Install as a Cake Tool

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.
  • OfficeTextMeasurementStyle and OfficeTextMetrics: 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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