Bio-Formats is a software tool for reading and writing image data using standardized, open formats.
BioFormats.Net is software package created by Georgi Danovski and it is based on the original
Bio-Formats library for Java. The library
was converted to .dll executable by using IKVM. This allows implementation of bio-formats library to .Net projects written in c#, vb.net or F#.
- Download and unzip IKVM (latest release)
- Download bio-formats library (latest release)
- Open the command prompt and run the following command to create BioFormats.Net.dll
[PATH to ikvmc]ikvmc -out:[PATH to dll]\BioFormats.Net.dll -fileversion:[VERSION] [PATH to jar]\bioformats_package.jar
- Download and install NuGet Package Explorer
- Build the NuGet package by using the BioFormats.Net.dll and NuGet Package Explorer software. It is important to add IKVM as the dependency and the ikvm-native dlls as content.
BioFormats.Net is available as NuGet package and can be installed directly in visual studio from the nuget package manager. When the package is installed you must find “ikvm-native-win32-x64.dll” and “ikvm-native-win32-x86.dll” in your solution explorer and right click on them. Select “Properties” and change “Copy to Output Directory” to “Copy if newer”.
Due to similarity between Java and c# you can use almost directly the examples provided by the bio-formats team.