Skip to content

Library Usage

Erik Repo edited this page Jun 20, 2023 · 1 revision
App.Initialize();

BioImage b = BioImage.OpenFile("file");

ImageView v = new ImageView(b);

ZCT cord = v.GetCoordinate();

ROI r = ROI.CreatePoint(cord, 0, 0);

//Usage of Graphics class for 16 & 48 bit images.

Graphics g = Graphics.FromImage(b.Buffers[0]);

g.pen = new Pen(new ColorS(ushort.MaxValue, ushort.MaxValue, ushort.MaxValue),10,b.bitsPerPixel);

g.DrawLine(0,0,100,100);

g.Dispose();

v.UpdateImage();

v.UpdateView();

//Lets save the result

BioImage.SaveFile("file","path");

//Plotting
double[] dt = new double[] { 1, 3, 5, 7, 9 };
Plot p = new Plot(dt,"Data");
Clone this wiki locally