MCUnderground.IES.NET 1.0.0

dotnet add package MCUnderground.IES.NET --version 1.0.0
                    
NuGet\Install-Package MCUnderground.IES.NET -Version 1.0.0
                    
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="MCUnderground.IES.NET" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MCUnderground.IES.NET" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MCUnderground.IES.NET" />
                    
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 MCUnderground.IES.NET --version 1.0.0
                    
#r "nuget: MCUnderground.IES.NET, 1.0.0"
                    
#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 MCUnderground.IES.NET@1.0.0
                    
#: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=MCUnderground.IES.NET&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MCUnderground.IES.NET&version=1.0.0
                    
Install as a Cake Tool

IES.NET

IES.NET parses IES LM-63 photometric files and renders the photometric data to a WPF bitmap.

Requirements

  • .NET 9
  • Windows
  • A WPF application

The renderer returns a BitmapSource, so it is intended for use in WPF applications.

Install

Install the package from NuGet:

dotnet add package MCUnderground.IES.NET

Usage

Parse an IES file and assign the rendered bitmap to a WPF Image control:

<Image x:Name="PhotometricImage" Stretch="Uniform" />
using IES.NET.Options;
using IES.NET.Parsing;
using IES.NET.Rendering;

var parser = new IesParser();
var data = parser.Parse(@"C:\Photometry\fixture.ies");

var bitmap = IesBitmapRenderer.RenderToBitmapSource(
    data,
    new RenderOptions
    {
        Width = 512,
        Height = 512
    });

PhotometricImage.Source = bitmap;

RenderOptions can be used to adjust the image dimensions, viewing angle, exposure, gamma, rotation, blur, and bloom.

IesParser.Parse reads a file from disk and returns an IesData instance containing the vertical angles, horizontal angles, and candela values. It throws FileNotFoundException if the path does not exist and IesParsingException if the file cannot be parsed.

License

IES.NET is distributed under the MIT license. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net9.0-windows7.0 is compatible.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 0 11/14/2026