using IronSoftware.Drawing;
using System.IO;
// Get, export, and read bytes
AnyBitmap bitmap = AnyBitmap.FromFile(@"FILE_PATH");
byte[] bit = bitmap.GetBytes(); // Get
byte[] export = bitmap.ExportBytes(AnyBitmap.ImageFormat.Tiff, 10); // Export
byte[] bat = File.ReadAllBytes("file_path"); // Read
Imports IronSoftware.Drawing
Imports System.IO
' Get, export, and read bytes
Private bitmap As AnyBitmap = AnyBitmap.FromFile("FILE_PATH")
Private bit() As Byte = bitmap.GetBytes() ' Get
Private export() As Byte = bitmap.ExportBytes(AnyBitmap.ImageFormat.Tiff, 10) ' Export
Private bat() As Byte = File.ReadAllBytes("file_path") ' Read