從 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,390,103版本:2026.11剛剛發布