IRONSOFTWAREHOME
匯出 AnyBitmap
using IronSoftware.Drawing;

//Export AnyBitmap files to other formats with ability to control loss
AnyBitmap bitmap = new AnyBitmap(@"FILE_PATH");
bitmap.ExportFile("losslogo.png", AnyBitmap.ImageFormat.Png, 100);


NuGet Download
PM > Install-Package IronSoftware.System.Drawing
匯出 AnyBitmap

匯出 AnyBitmap

AnyBitmap 檔案從 IronDrawing 工具生成後,可以匯出成其他圖像格式,並可設定匯出圖像的損失程度。 這使得使用者可以在需要的圖像品質和匯出圖像檔案大小之間取得平衡。

匯出 AnyBitmap 檔案

要將 AnyBitmap 檔案匯出到另一種圖像格式,您只需載入 AnyBitmap 檔案並使用 .ExportFile() 方法。 此方法有三種重載,允許您設定:

  1. 匯出檔案名稱
  2. 圖像格式
  3. 圖像品質損失

匯出後的圖像可以是以下格式之一:

  • Bmp: 位圖圖像文件
  • Gif: 圖形互換格式
  • Png: 可移植網路圖形
  • Jpeg: 聯合圖像專家組
  • Tiff: 標記圖像文件格式
  • Webp: 網路圖片
  • Wbmp: 無線位圖
  • Wmf: Windows 中繼文件
  • Icon: 圖示文件
在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天試用金鑰
無需信用卡或帳戶建立