HTML JPG CAD XML DXF
  Product Family
BMP

DXF’yi C# ile BMP’ye dönüştürün

AutoCAD® veya başka herhangi bir işleme yazılımına ihtiyaç duymadan anında DXF’yi BMP’ye dönüştürün.

DXF’yi BMP’ye dönüştürmek için, zengin özelliklere sahip, güçlü ve C# platformu için kullanımı kolay belge işleme ve dönüştürme API’si. NuGet paket yöneticisini açın, Aspose.CAD’i arayın ve kurun. Paket Yöneticisi Konsolundan aşağıdaki komutu da kullanabilirsiniz.

Paket Yöneticisi Konsol Komutu


PM> Install-Package Aspose.CAD

C# ile DXF'yi BMP'ye Dönüştürme Adımları

  1. DXF dosyasını Image.Load yöntemiyle yükleyin
  2. Sayfa yüksekliği ve genişliği ile bir CadRasterizationOptions nesnesi ayarlayın
  3. BmpOptions sınıfının bir örneğini oluşturun ve VectorRasterizationOptions özelliğini ayarlayın
  4. Sonuç dosya yolunu ve BmpOptions nesnesini iletirken Image.Save yöntemini çağırın

Dönüşüm Gereksinimleri

  • Microsoft Windows veya COM Interop aracılığıyla .NET Framework, .NET Core ve PHP, VBScript, Delphi, C++ ile uyumlu bir işletim sistemi.
  • Microsoft Visual Studio gibi geliştirme ortamı.
  • Projenizde referans verilen Aspose.CAD for .NET DLL.
 

Bu örnek kod, DXF'den BMP'ye C# Dönüşümünü gösterir

// load DXF in an instance of Image via its Load method
using (var image = Image.Load("template.dxf"))
{
// create an instance of CadRasterizationOptions and set page height & width
var rasterizationOptions = new ImageOptions.CadRasterizationOptions()
{
PageWidth = 1600,
PageHeight = 1600
};
// create an instance of BmpOptions
var options = new ImageOptions.BmpOptions();
// set the VectorRasterizationOptions property as CadRasterizationOptions
options.VectorRasterizationOptions = rasterizationOptions;
// export DXF to BMP
image.Save("output.bmp", options);
}
 

DXF’yi BMP’ye Dönüştürmek için Ücretsiz Uygulama

Check our live demos for DXF to BMP conversion with following benefits.

  No need to download or setup anything.
  No need to write any code.
  Just upload your DXF file and hit the "Convert" button.
  You will instantly get the download link for resultant BMP file.