BioCore  4.0.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions Enumerations Properties
BioCore.BufferInfo Class Reference
Inheritance diagram for BioCore.BufferInfo:

Public Member Functions

ushort GetValueRGB (int x, int y, int RGBChannel)
 
ColorS GetPixel (int ix, int iy)
 
void SetPixel (int ix, int iy, ColorS col)
 
void SetValue (int x, int y, ushort value)
 
void SetValueRGB (int ix, int iy, int RGBChannel, ushort value)
 
void SetColorRGB (int ix, int iy, ColorS value)
 
void SetImage (Bitmap bitmap, bool switchRGB)
 
Bitmap GetFiltered (IntRange rr, IntRange rg, IntRange rb)
 
void Crop (Rectangle r)
 
Bitmap GetCropBitmap (Rectangle r)
 
BufferInfo GetCropBuffer (Rectangle r)
 
 BufferInfo (int w, int h, PixelFormat px)
 
 BufferInfo (string file, int w, int h, PixelFormat px, byte[] bts, ZCT coord, int index)
 
 BufferInfo (string file, int w, int h, PixelFormat px, byte[] bts, ZCT coord, int index, Plane plane)
 
 BufferInfo (string file, int w, int h, PixelFormat px, byte[] byts, ZCT coord, int index, bool littleEndian=true, bool interleaved=true)
 
 BufferInfo (string file, int w, int h, PixelFormat px, byte[] byts, ZCT coord, int index, Plane plane, bool littleEndian=true, bool interleaved=true)
 
 BufferInfo (string file, Image im, ZCT coord, int index)
 
 BufferInfo (string file, Image im, ZCT coord, int index, Plane pl)
 
 BufferInfo (int w, int h, PixelFormat px, byte[] bts, ZCT coord, string id)
 
void SwitchRedBlue ()
 
byte[] GetSaveBytes (bool littleEndian)
 
void RGBTo32Bit ()
 
BufferInfo Copy ()
 
BufferInfo CopyInfo ()
 
void To8Bit ()
 
void To16Bit ()
 Convert the image to 16 bit. More...
 
void ToRGB ()
 
void RotateFlip (RotateFlipType rot)
 
override string ToString ()
 
void Dispose ()
 It's a function that disposes of the object's memory. More...
 

Static Public Member Functions

static string CreateID (string filepath, int index)
 
static BufferInfo[] RGB48To16 (string file, int w, int h, int stride, byte[] bts, ZCT coord, int index, Plane plane)
 
static BufferInfo RGB16To48 (BufferInfo[] bfs)
 
static BufferInfo RGB16To48 (BufferInfo bfs)
 
static Bitmap GetRGBBitmap (BufferInfo[] bfs, IntRange rr, IntRange rg, IntRange rb)
 
static Bitmap GetEmissionBitmap (BufferInfo bfs, IntRange rr, System.Drawing.Color col)
 
static Bitmap GetEmissionBitmap (BufferInfo[] bfs, Channel[] chans)
 
static BufferInfo RGB8To24 (BufferInfo[] bfs)
 
static BufferInfo RGB8To24 (BufferInfo bfs)
 
static Bitmap[] RGB24To8 (Bitmap info)
 
static unsafe Bitmap GetBitmap (int w, int h, int stride, PixelFormat px, byte[] bts)
 
static unsafe Bitmap GetBitmapRGB (int w, int h, PixelFormat px, byte[] bts)
 
static unsafe IntPtr GetRGBData (int w, int h, PixelFormat px, byte[] bts)
 
static unsafe byte[] GetRGBBuffer (int w, int h, PixelFormat px, byte[] bts)
 
static Bitmap GetFiltered (int w, int h, int stride, PixelFormat px, byte[] bts, IntRange rr, IntRange rg, IntRange rb)
 
static Bitmap SwitchRedBlue (Bitmap image)
 
static byte[] GetBuffer (Bitmap bmp, int stride)
 
static Bitmap To24Bit (Bitmap b)
 
static Bitmap To32Bit (Bitmap b)
 
static Bitmap SwitchChannels (Bitmap image, int c1, int c2)
 
static BufferInfo operator/ (BufferInfo a, BufferInfo b)
 
static BufferInfo operator* (BufferInfo a, BufferInfo b)
 
static BufferInfo operator+ (BufferInfo a, BufferInfo b)
 
static BufferInfo operator- (BufferInfo a, BufferInfo b)
 
static BufferInfo operator/ (BufferInfo a, float b)
 
static BufferInfo operator* (BufferInfo a, float b)
 
static BufferInfo operator+ (BufferInfo a, float b)
 
static BufferInfo operator- (BufferInfo a, float b)
 
static BufferInfo operator/ (BufferInfo a, ColorS b)
 
static BufferInfo operator* (BufferInfo a, ColorS b)
 
static BufferInfo operator+ (BufferInfo a, ColorS b)
 
static BufferInfo operator- (BufferInfo a, ColorS b)
 

Public Attributes

string ID
 
int SizeX
 
int SizeY
 
ZCT Coordinate
 

Properties

string File [get, set]
 
int HashID [get]
 
int Stride [get]
 
int PaddedStride [get]
 
byte[] PaddedBuffer [get]
 
bool LittleEndian [get, set]
 
long Length [get]
 
int RGBChannelsCount [get]
 
int BitsPerPixel [get]
 
PixelFormat PixelFormat [get, set]
 
byte[] Bytes [get, set]
 
byte[] PaddedBytes [get]
 
Image Image [get, set]
 
Image ImageRGB [get, set]
 
IntPtr RGBData [get]
 
Plane Plane [get, set]
 
int PixelFormatSize [get]
 
Statistics[] Stats [get, set]
 
byte[] RGBBytes [get]
 
bool isRGB [get]
 

Detailed Description

Definition at line 1879 of file Bio.cs.

Constructor & Destructor Documentation

◆ BufferInfo() [1/8]

BioCore.BufferInfo.BufferInfo ( int  w,
int  h,
PixelFormat  px 
)

Definition at line 3689 of file Bio.cs.

◆ BufferInfo() [2/8]

BioCore.BufferInfo.BufferInfo ( string  file,
int  w,
int  h,
PixelFormat  px,
byte[]  bts,
ZCT  coord,
int  index 
)

Definition at line 3699 of file Bio.cs.

◆ BufferInfo() [3/8]

BioCore.BufferInfo.BufferInfo ( string  file,
int  w,
int  h,
PixelFormat  px,
byte[]  bts,
ZCT  coord,
int  index,
Plane  plane 
)

Definition at line 3711 of file Bio.cs.

◆ BufferInfo() [4/8]

BioCore.BufferInfo.BufferInfo ( string  file,
int  w,
int  h,
PixelFormat  px,
byte[]  byts,
ZCT  coord,
int  index,
bool  littleEndian = true,
bool  interleaved = true 
)

Definition at line 3724 of file Bio.cs.

◆ BufferInfo() [5/8]

BioCore.BufferInfo.BufferInfo ( string  file,
int  w,
int  h,
PixelFormat  px,
byte[]  byts,
ZCT  coord,
int  index,
Plane  plane,
bool  littleEndian = true,
bool  interleaved = true 
)

Definition at line 3812 of file Bio.cs.

◆ BufferInfo() [6/8]

BioCore.BufferInfo.BufferInfo ( string  file,
Image  im,
ZCT  coord,
int  index 
)

Definition at line 3900 of file Bio.cs.

◆ BufferInfo() [7/8]

BioCore.BufferInfo.BufferInfo ( string  file,
Image  im,
ZCT  coord,
int  index,
Plane  pl 
)

Definition at line 3911 of file Bio.cs.

◆ BufferInfo() [8/8]

BioCore.BufferInfo.BufferInfo ( int  w,
int  h,
PixelFormat  px,
byte[]  bts,
ZCT  coord,
string  id 
)

Definition at line 3923 of file Bio.cs.

Member Function Documentation

◆ Copy()

BufferInfo BioCore.BufferInfo.Copy ( )

It creates a new byte array, copies the bytes from the original array into the new array, and then creates a new BufferInfo object with the new byte array

Returns
A new BufferInfo object.

Definition at line 4135 of file Bio.cs.

◆ CopyInfo()

BufferInfo BioCore.BufferInfo.CopyInfo ( )

It creates a new BufferInfo object, copies the values of the current object into the new object, and returns the new object

Returns
A new BufferInfo object.

Definition at line 4150 of file Bio.cs.

◆ CreateID()

static string BioCore.BufferInfo.CreateID ( string  filepath,
int  index 
)
static

It takes a filepath and an index and returns a string that is the filepath with a slash and the index appended to it

Parameters
filepathThe path to the file.
indexThe index of the file in the folder.
Returns
The filepath and the index.

Definition at line 2010 of file Bio.cs.

◆ Crop()

void BioCore.BufferInfo.Crop ( Rectangle  r)

It takes a rectangle and crops the image to that rectangle

Parameters
RectangleThe rectangle to crop to.

Definition at line 3512 of file Bio.cs.

◆ Dispose()

void BioCore.BufferInfo.Dispose ( )

It's a function that disposes of the object's memory.

Definition at line 4275 of file Bio.cs.

◆ GetBitmap()

static unsafe Bitmap BioCore.BufferInfo.GetBitmap ( int  w,
int  h,
int  stride,
PixelFormat  px,
byte[]  bts 
)
static

If the stride is not a multiple of 4, then pad the buffer with zeros and create a new bitmap with the padded buffer

Parameters
wwidth of the image
hheight of the image
strideThe stride of the image.
PixelFormatFormat24bppRgb
btsthe byte array of the image
Returns
A Bitmap object.

Definition at line 2849 of file Bio.cs.

◆ GetBitmapRGB()

static unsafe Bitmap BioCore.BufferInfo.GetBitmapRGB ( int  w,
int  h,
PixelFormat  px,
byte[]  bts 
)
static

It takes a byte array of RGB or RGBA data and converts it to a Bitmap

Parameters
wwidth of the image
hheight of the image
PixelFormatThe pixel format of the image.
btsthe byte array of the image
Returns
A Bitmap object.

Definition at line 2873 of file Bio.cs.

◆ GetBuffer()

static byte[] BioCore.BufferInfo.GetBuffer ( Bitmap  bmp,
int  stride 
)
static

It takes a bitmap, locks it, copies the bytes into a byte array, reverses the byte array, and then unlocks the bitmap

Parameters
BitmapThe bitmap to convert to a byte array.
strideThe stride is the width of a single row of pixels (a scan line), rounded up to a four-byte boundary. If the stride is positive, the bitmap is top-down. If the stride is negative, the bitmap is bottom-up. (In Windows GDI, the
Returns
A byte array of the image data.

Definition at line 4047 of file Bio.cs.

◆ GetCropBitmap()

Bitmap BioCore.BufferInfo.GetCropBitmap ( Rectangle  r)

It creates a new Bitmap object from the original image, but only using the bytes that are within the rectangle

Parameters
RectangleThe rectangle to crop the image to.
Returns
A Bitmap object.

Definition at line 3573 of file Bio.cs.

◆ GetCropBuffer()

BufferInfo BioCore.BufferInfo.GetCropBuffer ( Rectangle  r)

It takes a rectangle and returns a BufferInfo object that contains the cropped image

Parameters
RectangleThe rectangle to crop the image to.
Returns
A BufferInfo object.

Definition at line 3632 of file Bio.cs.

◆ GetEmissionBitmap() [1/2]

static Bitmap BioCore.BufferInfo.GetEmissionBitmap ( BufferInfo  bfs,
IntRange  rr,
System.Drawing.Color  col 
)
static

It takes a buffer, a color, and a range, and returns a bitmap with the color applied to the buffer

Parameters
BufferInfoThis is a class that contains the following properties:
IntRangeThis is a struct that contains a min and max value.
colThe color to use for the emission.
Returns
A bitmap.

Definition at line 2566 of file Bio.cs.

◆ GetEmissionBitmap() [2/2]

static Bitmap BioCore.BufferInfo.GetEmissionBitmap ( BufferInfo[]  bfs,
Channel[]  chans 
)
static

It takes a list of buffer info objects and a list of channel objects and returns a bitmap of the emission data

Parameters
bfsan array of BufferInfo objects, each of which contains a buffer of data (a float[]) and the size of the buffer (SizeX and SizeY).
chansan array of Channel objects, which are defined as:
Returns
A bitmap of the emission image.

Definition at line 2720 of file Bio.cs.

◆ GetFiltered() [1/2]

static Bitmap BioCore.BufferInfo.GetFiltered ( int  w,
int  h,
int  stride,
PixelFormat  px,
byte[]  bts,
IntRange  rr,
IntRange  rg,
IntRange  rb 
)
static

It takes a byte array of image data, and returns a bitmap

Parameters
wwidth of the image
hheight of the image
stridethe number of bytes per row of the image.
PixelFormatThe pixel format of the image.
btsthe byte array of the image
IntRangeThis is a struct that contains a min and max value.
IntRangeThis is a struct that contains a min and max value.
IntRangeThis is a struct that contains a min and max value.
Returns
A Bitmap object.

Definition at line 3278 of file Bio.cs.

◆ GetFiltered() [2/2]

Bitmap BioCore.BufferInfo.GetFiltered ( IntRange  rr,
IntRange  rg,
IntRange  rb 
)

It takes a range of red, green, and blue values and returns a bitmap that contains only the pixels that fall within the range

Parameters
IntRange
IntRange
IntRange
Returns
A bitmap.

Definition at line 3505 of file Bio.cs.

◆ GetPixel()

ColorS BioCore.BufferInfo.GetPixel ( int  ix,
int  iy 
)

Definition at line 1902 of file Bio.cs.

◆ GetRGBBitmap()

static Bitmap BioCore.BufferInfo.GetRGBBitmap ( BufferInfo[]  bfs,
IntRange  rr,
IntRange  rg,
IntRange  rb 
)
static

It takes a buffer of RGB data, and returns a bitmap

Parameters
bfsBufferInfo[] - this is an array of BufferInfo objects. Each BufferInfo object represents a single image buffer. In this case, we're only using one image buffer, but you can use multiple image buffers to create a single image. For example, you can use a red image
IntRange
IntRange
IntRange
Returns
A Bitmap object.

Definition at line 2482 of file Bio.cs.

◆ GetRGBBuffer()

static unsafe byte[] BioCore.BufferInfo.GetRGBBuffer ( int  w,
int  h,
PixelFormat  px,
byte[]  bts 
)
static

It takes a byte array of RGB data and returns a pointer to a 32 bit ARGB image

Parameters
wwidth of the image
hheight of the image
PixelFormatThe pixel format of the image.
btsthe byte array of the image
Returns
A pointer to the first byte of the image data.

Definition at line 3178 of file Bio.cs.

◆ GetRGBData()

static unsafe IntPtr BioCore.BufferInfo.GetRGBData ( int  w,
int  h,
PixelFormat  px,
byte[]  bts 
)
static

It takes a byte array of RGB data and returns a pointer to a 32 bit ARGB image

Parameters
wwidth of the image
hheight of the image
PixelFormatThe pixel format of the image.
btsthe byte array of the image
Returns
A pointer to the first byte of the image data.

Definition at line 3040 of file Bio.cs.

◆ GetSaveBytes()

byte[] BioCore.BufferInfo.GetSaveBytes ( bool  littleEndian)

It takes a buffer, copies it, flips it, rotates it, and then copies the bytes from the bitmap to a byte array

Parameters
littleEndiantrue if the image is in little endian format, false if it's in big endian format.
Returns
A byte array of the image data.

Definition at line 4018 of file Bio.cs.

◆ GetValueRGB()

ushort BioCore.BufferInfo.GetValueRGB ( int  x,
int  y,
int  RGBChannel 
)

Definition at line 1881 of file Bio.cs.

◆ operator*() [1/3]

static BufferInfo BioCore.BufferInfo.operator* ( BufferInfo  a,
BufferInfo  b 
)
static

Definition at line 4303 of file Bio.cs.

◆ operator*() [2/3]

static BufferInfo BioCore.BufferInfo.operator* ( BufferInfo  a,
ColorS  b 
)
static

Definition at line 4401 of file Bio.cs.

◆ operator*() [3/3]

static BufferInfo BioCore.BufferInfo.operator* ( BufferInfo  a,
float  b 
)
static

Definition at line 4352 of file Bio.cs.

◆ operator+() [1/3]

static BufferInfo BioCore.BufferInfo.operator+ ( BufferInfo  a,
BufferInfo  b 
)
static

Definition at line 4315 of file Bio.cs.

◆ operator+() [2/3]

static BufferInfo BioCore.BufferInfo.operator+ ( BufferInfo  a,
ColorS  b 
)
static

Definition at line 4413 of file Bio.cs.

◆ operator+() [3/3]

static BufferInfo BioCore.BufferInfo.operator+ ( BufferInfo  a,
float  b 
)
static

Definition at line 4364 of file Bio.cs.

◆ operator-() [1/3]

static BufferInfo BioCore.BufferInfo.operator- ( BufferInfo  a,
BufferInfo  b 
)
static

Definition at line 4327 of file Bio.cs.

◆ operator-() [2/3]

static BufferInfo BioCore.BufferInfo.operator- ( BufferInfo  a,
ColorS  b 
)
static

Definition at line 4425 of file Bio.cs.

◆ operator-() [3/3]

static BufferInfo BioCore.BufferInfo.operator- ( BufferInfo  a,
float  b 
)
static

Definition at line 4376 of file Bio.cs.

◆ operator/() [1/3]

static BufferInfo BioCore.BufferInfo.operator/ ( BufferInfo  a,
BufferInfo  b 
)
static

Definition at line 4291 of file Bio.cs.

◆ operator/() [2/3]

static BufferInfo BioCore.BufferInfo.operator/ ( BufferInfo  a,
ColorS  b 
)
static

Definition at line 4389 of file Bio.cs.

◆ operator/() [3/3]

static BufferInfo BioCore.BufferInfo.operator/ ( BufferInfo  a,
float  b 
)
static

Definition at line 4340 of file Bio.cs.

◆ RGB16To48() [1/2]

static BufferInfo BioCore.BufferInfo.RGB16To48 ( BufferInfo  bfs)
static

It takes a 16 bit image and converts it to a 48 bit image by copying the red value to the green and blue values

Parameters
BufferInfoThis is a class that contains the following properties:
Returns
A BufferInfo object.

Definition at line 2443 of file Bio.cs.

◆ RGB16To48() [2/2]

static BufferInfo BioCore.BufferInfo.RGB16To48 ( BufferInfo[]  bfs)
static

It takes a list of BufferInfo objects, each of which contains a byte array of 16-bit pixel data, and returns a single BufferInfo object containing a byte array of 48-bit pixel data

Parameters
bfsan array of BufferInfo objects.
Returns
A BufferInfo object.

Definition at line 2377 of file Bio.cs.

◆ RGB24To8()

static Bitmap[] BioCore.BufferInfo.RGB24To8 ( Bitmap  info)
static

It takes a 24-bit RGB image and returns an array of 8-bit images, one for each channel

Parameters
BitmapThe image to be converted
Returns
A Bitmap array.

Definition at line 2825 of file Bio.cs.

◆ RGB48To16()

static BufferInfo[] BioCore.BufferInfo.RGB48To16 ( string  file,
int  w,
int  h,
int  stride,
byte[]  bts,
ZCT  coord,
int  index,
Plane  plane 
)
static

It takes a byte array of RGB48 data, converts it to RGB16, and returns a BufferInfo array of 3 BufferInfo objects, each containing a Bitmap of the RGB16 data

Parameters
filethe file name
wwidth of the image
hheight of the image
stridethe number of bytes per row
btsbyte array of the image data
ZCTZ, C, T coordinates
indexthe index of the image in the file
Planeenum with values XY, XZ, YZ
Returns
A BufferInfo array of 3 elements.

Definition at line 2320 of file Bio.cs.

◆ RGB8To24() [1/2]

static BufferInfo BioCore.BufferInfo.RGB8To24 ( BufferInfo  bfs)
static

It takes a buffer of bytes, and converts it from 8-bit grayscale to 24-bit RGB

Parameters
BufferInfoThis is a class that contains the following properties:
Returns
A BufferInfo object.

Definition at line 2795 of file Bio.cs.

◆ RGB8To24() [2/2]

static BufferInfo BioCore.BufferInfo.RGB8To24 ( BufferInfo[]  bfs)
static

It takes an array of BufferInfo objects, each of which contains a byte array of 8-bit pixel data, and returns a single BufferInfo object containing a byte array of 24-bit pixel data

Parameters
bfsan array of BufferInfo objects.
Returns
A BufferInfo object.

Definition at line 2738 of file Bio.cs.

◆ RGBTo32Bit()

void BioCore.BufferInfo.RGBTo32Bit ( )

It creates a new bitmap with the same dimensions as the original, but with a 32 bit pixel format, then it draws the original image onto the new bitmap

Definition at line 4100 of file Bio.cs.

◆ RotateFlip()

void BioCore.BufferInfo.RotateFlip ( RotateFlipType  rot)

It takes a bitmap, clones it, rotates it, and then sets the image to the rotated bitmap

Parameters
RotateFlipType

Definition at line 4249 of file Bio.cs.

◆ SetColorRGB()

void BioCore.BufferInfo.SetColorRGB ( int  ix,
int  iy,
ColorS  value 
)

The function takes a pixel coordinate and a color value and sets the pixel to that color

Parameters
ixx coordinate of the pixel
iyThe y coordinate of the pixel to set
ColorSa struct that contains a byte array of 6 bytes.

Definition at line 1980 of file Bio.cs.

◆ SetImage()

void BioCore.BufferInfo.SetImage ( Bitmap  bitmap,
bool  switchRGB 
)

It takes a bitmap, switches the red and blue channels if necessary, rotates it 180 degrees, and then gets the bytes from the bitmap

Parameters
BitmapThe bitmap to be converted to a byte array
switchRGBIf true, the red and blue channels are switched.

Definition at line 2231 of file Bio.cs.

◆ SetPixel()

void BioCore.BufferInfo.SetPixel ( int  ix,
int  iy,
ColorS  col 
)

Definition at line 1912 of file Bio.cs.

◆ SetValue()

void BioCore.BufferInfo.SetValue ( int  x,
int  y,
ushort  value 
)

It takes a pixel coordinate and a value, and sets the pixel to that value

Parameters
xThe x coordinate of the pixel to set
yThe y coordinate of the pixel to set
valuethe value to be set

Definition at line 1926 of file Bio.cs.

◆ SetValueRGB()

void BioCore.BufferInfo.SetValueRGB ( int  ix,
int  iy,
int  RGBChannel,
ushort  value 
)

The function takes a pixel coordinate (ix, iy) and a color channel (RGBChannel) and a value (value) and sets the pixel value to the value

Parameters
ixx coordinate of the pixel
iyThe y coordinate of the pixel to set.
RGBChannel0 = Red, 1 = Green, 2 = Blue
valuethe value to set the pixel to

Definition at line 1950 of file Bio.cs.

◆ SwitchChannels()

static Bitmap BioCore.BufferInfo.SwitchChannels ( Bitmap  image,
int  c1,
int  c2 
)
static

It takes an image, extracts the two channels you want to switch, replaces the channels in the original image, and returns the original image with the channels switched

Parameters
BitmapThe image to be processed
c1The channel to be replaced
c2The channel to be replaced
Returns
The image is being returned.

Definition at line 4115 of file Bio.cs.

◆ SwitchRedBlue() [1/2]

void BioCore.BufferInfo.SwitchRedBlue ( )

It switches the red and blue channels of the image

Returns
a byte array.

Definition at line 3960 of file Bio.cs.

◆ SwitchRedBlue() [2/2]

static Bitmap BioCore.BufferInfo.SwitchRedBlue ( Bitmap  image)
static

It takes a Bitmap image, extracts the red and blue channels, replaces the red channel with the blue channel and the blue channel with the red channel, and returns the modified image

Parameters
BitmapThe image to be processed
Returns
The image is being returned.

Definition at line 3940 of file Bio.cs.

◆ To16Bit()

void BioCore.BufferInfo.To16Bit ( )

Convert the image to 16 bit.

Definition at line 4166 of file Bio.cs.

◆ To24Bit()

static Bitmap BioCore.BufferInfo.To24Bit ( Bitmap  b)
static

"If the image is 16bpp, convert it to 8bpp, then draw it to a new 24bpp image."

The reason for this is that the AForge library doesn't support 16bpp images

Parameters
BitmapThe bitmap to convert
Returns
A Bitmap object.

Definition at line 4066 of file Bio.cs.

◆ To32Bit()

static Bitmap BioCore.BufferInfo.To32Bit ( Bitmap  b)
static

If the image is 16 bit grayscale, convert it to 8 bit grayscale, then convert it to 32 bit ARGB

Parameters
BitmapThe bitmap to convert
Returns
A Bitmap

Definition at line 4087 of file Bio.cs.

◆ To8Bit()

void BioCore.BufferInfo.To8Bit ( )

Convert the 16 bit image to 8 bit, rotate it 180 degrees, and set the image to the new 8 bit image

Definition at line 4159 of file Bio.cs.

◆ ToRGB()

void BioCore.BufferInfo.ToRGB ( )

It converts the image to RGB format

Returns
a byte array.

Definition at line 4175 of file Bio.cs.

◆ ToString()

override string BioCore.BufferInfo.ToString ( )

It returns the ID of the object.

Returns
The ID of the object.

Definition at line 4270 of file Bio.cs.

Member Data Documentation

◆ Coordinate

ZCT BioCore.BufferInfo.Coordinate

Definition at line 2111 of file Bio.cs.

◆ ID

string BioCore.BufferInfo.ID

Definition at line 2019 of file Bio.cs.

◆ SizeX

int BioCore.BufferInfo.SizeX

Definition at line 2032 of file Bio.cs.

◆ SizeY

int BioCore.BufferInfo.SizeY

Definition at line 2032 of file Bio.cs.

Property Documentation

◆ BitsPerPixel

int BioCore.BufferInfo.BitsPerPixel
get

Definition at line 2099 of file Bio.cs.

◆ Bytes

byte [] BioCore.BufferInfo.Bytes
getset

Definition at line 2123 of file Bio.cs.

◆ File

string BioCore.BufferInfo.File
getset

Definition at line 2020 of file Bio.cs.

◆ HashID

int BioCore.BufferInfo.HashID
get

Definition at line 2025 of file Bio.cs.

◆ Image

Image BioCore.BufferInfo.Image
getset

Definition at line 2139 of file Bio.cs.

◆ ImageRGB

Image BioCore.BufferInfo.ImageRGB
getset

Definition at line 2163 of file Bio.cs.

◆ isRGB

bool BioCore.BufferInfo.isRGB
get

Definition at line 4257 of file Bio.cs.

◆ Length

long BioCore.BufferInfo.Length
get

Definition at line 2079 of file Bio.cs.

◆ LittleEndian

bool BioCore.BufferInfo.LittleEndian
getset

Definition at line 2068 of file Bio.cs.

◆ PaddedBuffer

byte [] BioCore.BufferInfo.PaddedBuffer
get

Definition at line 2061 of file Bio.cs.

◆ PaddedBytes

byte [] BioCore.BufferInfo.PaddedBytes
get

Definition at line 2131 of file Bio.cs.

◆ PaddedStride

int BioCore.BufferInfo.PaddedStride
get

Definition at line 2054 of file Bio.cs.

◆ PixelFormat

PixelFormat BioCore.BufferInfo.PixelFormat
getset

Definition at line 2112 of file Bio.cs.

◆ PixelFormatSize

int BioCore.BufferInfo.PixelFormatSize
get

Definition at line 2198 of file Bio.cs.

◆ Plane

Plane BioCore.BufferInfo.Plane
getset

Definition at line 2193 of file Bio.cs.

◆ RGBBytes

byte [] BioCore.BufferInfo.RGBBytes
get

Definition at line 4130 of file Bio.cs.

◆ RGBChannelsCount

int BioCore.BufferInfo.RGBChannelsCount
get

Definition at line 2086 of file Bio.cs.

◆ RGBData

IntPtr BioCore.BufferInfo.RGBData
get

Definition at line 2186 of file Bio.cs.

◆ Stats

Statistics [] BioCore.BufferInfo.Stats
getset

Definition at line 2216 of file Bio.cs.

◆ Stride

int BioCore.BufferInfo.Stride
get

Definition at line 2033 of file Bio.cs.


The documentation for this class was generated from the following file: