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 19,661,086版本:2025.3刚刚发布

Key in blue circle

立即获取免费的 30 天试用版密钥

Your trial license will be sent to your email address

无任何限制。100% 解锁。无需信用卡。

bullet_checked无需信用卡或创建账户无任何限制。100% 解锁。无需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
获取您的无义务咨询
填写下面的表格或通过sales@ironsoftware.com
您的资料将始终保密。
深受全球数百万工程师信赖
Iron Software 的客户徽标
立即获取您的免费30 天试用密钥
无需信用卡或创建账户