IRONSOFTWAREHOME
從 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 20,033,450版本:2025.3剛剛發布

Key in blue circle

立即免費取得 30 天試用金鑰

Your trial license will be sent to your email address

無任何限制。100% 解鎖。無需信用卡。

OR
bullet_checked無需信用卡或建立帳號無任何限制。100% 解鎖。無需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried Iron Suite
獲取您的無義務諮詢
填寫以下表格或發送電子郵件至sales@ironsoftware.com
您的詳細資訊將始終保密。
被全球數百萬工程師信任
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立