BioLib 3.6.2

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

BioLib

Nuget DOI

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 Compatible and additional computed target framework versions.
.NET 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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.6.2 146 20 days ago
3.6.1 136 21 days ago
3.6.0 139 21 days ago
3.5.0 147 6 months ago
3.4.2 112 6 months ago
3.4.1 137 6 months ago
3.4.0 131 6 months ago
3.3.0 150 7 months ago
3.2.0 126 7 months ago
3.1.1 124 7 months ago
3.1.0 118 7 months ago
3.0.0 125 8 months ago
2.9.2 111 8 months ago
2.9.1.1 131 8 months ago
2.9.1 118 8 months ago
2.9.0.1 125 8 months ago
2.9.0 114 8 months ago
2.8.0 173 9 months ago
2.7.3.2 130 9 months ago
2.7.3.1 132 9 months ago 2.7.3.1 is deprecated because it has critical bugs.
2.7.3 144 9 months ago
2.7.2.1 135 9 months ago
2.7.2 121 9 months ago
2.7.1 134 9 months ago
2.7.0.1 124 9/1/2024
2.7.0 128 8/29/2024
2.6.0 160 8/21/2024
2.5.0 136 7/26/2024
2.4.1 148 7/7/2024
2.4.0 129 5/2/2024
2.3.0 146 4/23/2024
2.2.1 186 2/17/2024
2.2.0 152 2/17/2024
2.1.0 171 2/10/2024
2.0.0 153 2/2/2024
1.9.0 192 12/24/2023
1.8.0 217 11/2/2023
1.7.0 479 9/1/2023
1.6.2 446 8/22/2023
1.6.1 422 8/19/2023
1.6.0 476 8/6/2023
1.5.2 495 8/2/2023
1.5.1 469 7/9/2023
1.5.0 457 7/8/2023
1.4.1 431 6/27/2023
1.4.0 403 5/15/2023
1.3.2 487 4/12/2023
1.3.1 532 4/1/2023
1.3.0 531 3/7/2023
1.2.1 589 3/4/2023
1.2.0 583 3/2/2023
1.1.1 541 3/2/2023
1.1.0 531 3/1/2023
1.0.0 287 3/1/2023

Fixes LibVips support.