BioLib 4.1.0
dotnet add package BioLib --version 4.1.0
NuGet\Install-Package BioLib -Version 4.1.0
<PackageReference Include="BioLib" Version="4.1.0" />
<PackageVersion Include="BioLib" Version="4.1.0" />
<PackageReference Include="BioLib" />
paket add BioLib --version 4.1.0
#r "nuget: BioLib, 4.1.0"
#:package BioLib@4.1.0
#addin nuget:?package=BioLib&version=4.1.0
#tool nuget:?package=BioLib&version=4.1.0
BioLib
A GUI-less version of Bio .NET library for editing & annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters & macro functions. Supports Windows, Linux and Mac. Check out the documentation.
Usage
//First call BioImage.Initialize to
//initialize the Bioformats library.
BioImage.Initialize();
//Once initialized you can open OME, ImageJ tiff files, and Bio Tiff files with:
BioImage b = BioImage.OpenFile("file");
//Or if you want to use specifically the OME image reader you can use BioImage.OpenOME
BioImage b = BioImage.OpenOME("file");
//If you are working with a pyramidal image you can open a portion of a tiled image with OpenOME.
//BioImage.OpenOME(string file, int serie, bool tab, bool addToImages, bool tile, int tilex, int tiley, int tileSizeX, int tileSizeY)
//You can specify whether to open in a newtab as well as whether to add the image to
//the Images.images table. As well as specify whether to open as a tile with the specified
//tile X,Y position & tile width & height.
BioImage.OpenOME("file",0,false,false,true,0,0,600,600);
//This will open a portion of the image as a tile and won't add it to the Images table.
//Once you have opened a tiled image with BioImage.OpenOME you can call the
//GetTile(BioImage b, ZCT coord, int serie, int tilex, int tiley, int tileSizeX, int tileSizeY) method
// to quickly get another tile from different portion of the image. For BioGTK & BioLib
Bitmap bm = BioImage.GetTile(b, new ZCT(0,0,0), 0, 100, 100, 600, 600);
//To get the current coordinate of the ImageView you can call GetCoordinate.
ZCT cord = v.GetCoordinate();
//or to set the current coordinate
v.SetCoordinate(new ZCT(1,1,1));
//To create a point as well as any other ROI type you can call the ROI create methods.
ROI p = ROI.CreatePoint(cord, 0, 0);
ROI rect = ROI.CreateRectangle(cord, 0, 0, 100, 100);
//Usage of Graphics class for 16 & 48 bit images as well as regular bit depth images
//is very similar to System.Graphics.
//We create a new Graphics object by passing the Bitmap for BioGTK & BioLib and BufferInfo for BioCore
Graphics g = Graphics.FromImage(b.Buffers[0]);
//Then we create a pen by passing a ColorS which represent a Color with,
//a higher bit depth (unsigned short) rather than a byte.
g.pen = new Pen(new ColorS(ushort.MaxValue, ushort.MaxValue, ushort.MaxValue));
//Then we can call the familiar methods DrawLine, DrawPolygon, FillPolygon etc.
g.DrawLine(0,0,100,100);
//Finally we dispose the Graphics object.
g.Dispose();
//We can also save the resulting image given the ID of the image in the Images table.
//All images opened with BioImage.OpenFile or BioImage.OpenOME are added to the
//Images.images table with the filename as an ID.
BioImage.SaveFile("file","path");
//Usage of OMERO class.
OMERO.Connect("demo.openmicroscopy.org", 4064, "username", "password");
string[] files = OMERO.GetAllFiles().ToArray();
string[] dbs = OMERO.GetDatasets().ToArray();
string[] fs = OMERO.GetFolders().ToArray();
string[] dbf = OMERO.GetDatasetFiles("CZI").ToArray();
//Usage of QuPath class.
QuPath.Project qu = QuPath.OpenProject("test.qpproj");
BioImage[] bms = new BioImage[] { BioImage.OpenFile("test.ome.tif") };
List<BioImage[]> bims = new List<BioImage[]>();
bims.Add(bms);
QuPath.Project qp = QuPath.Project.FromImages(bims, "test.qpproj");
QuPath.Project.SaveProject("myproj.qpproj", bims);
//To convert between different pixel formats we can call for example To24Bit.
b.To24Bit();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- BitMiracle.LibTiff.NET (>= 2.4.660)
- CS-Script (>= 4.14.9)
- Fiji.NET (>= 0.1.0)
- Newtonsoft.Json (>= 13.0.4)
- OMERO.NET (>= 1.0.5)
- OpenSlideGTK (>= 2.7.0)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.Views.Gtk3 (>= 3.119.4)
- ZarrNET (>= 0.6.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on BioLib:
| Package | Downloads |
|---|---|
|
BioCore
A .NET library & program for annotating, & editing various microscopy imaging formats using Bioformats supported images. including whole slide, pyramidal & series. |
|
|
BioGTK
A .NET application & library for editing & annotating various microscopy image formats. Supports all bioformats supported images. Integrates with ImageJ, running ImageJ filters & macro functions. Supports Windows, Linux and Mac. |
|
|
BioImager
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include Prior® & Zeiss® & all devices supported by Micromanager 2.0 and python-microscope. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.1.0 | 42 | 7/19/2026 |
| 4.0.1 | 164 | 5/15/2026 |
| 4.0.0 | 129 | 5/14/2026 |
| 3.9.1 | 1,481 | 2/12/2026 |
| 3.9.0 | 1,445 | 2/8/2026 |
| 3.8.1 | 1,451 | 2/2/2026 |
| 3.8.0 | 1,425 | 1/31/2026 |
| 3.7.0 | 1,793 | 12/9/2025 |
| 3.6.2 | 1,627 | 6/23/2025 |
| 3.6.1 | 1,545 | 6/22/2025 |
| 3.6.0 | 1,545 | 6/22/2025 |
| 3.5.0 | 1,593 | 1/20/2025 |
| 3.4.2 | 1,519 | 1/8/2025 |
| 3.4.1 | 1,564 | 1/6/2025 |
| 3.4.0 | 1,536 | 1/5/2025 |
| 3.3.0 | 1,577 | 12/17/2024 |
| 3.2.0 | 1,535 | 12/10/2024 |
| 3.1.1 | 1,528 | 12/3/2024 |
| 3.1.0 | 1,543 | 12/2/2024 |
| 3.0.0 | 1,530 | 11/25/2024 |
Improves BioLib’s Fiji command workflow for pyramidal and remote Zarr images, focusing on correct output format, metadata preservation, and faster pyramid processing. Save pyramidal Fiji command output as OME-Zarr instead of OME-TIFF. Preserve the original BioImage name for generated output. Preserve source ROIs and annotations on result images. Improve progress reporting with elapsed time and estimated completion. Speed up pyramid extraction and Zarr save paths. Fix ZCT coordinate handling for processed pyramid levels.