从AnyBitmap读取字节
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


NuGet Download
PM > Install-Package IronSoftware.System.Drawing
从AnyBitmap读取字节

从AnyBitmap读取字节

处理AnyBitmap文件

用户可以选择以字节为单位操作AnyBitmap文件。 AnyBitmap文件的字节。

要读取的图像文件可以使用附带AnyBitmap变量中。 然后可以操控该变量来使用File.ReadAllBytes(@"FILE_PATH")方法读取文件的所有字节。

在 GitHub 上查看

准备开始了吗?

Nuget Downloads 21,099,947版本:2026.11刚刚发布