HTML JPG CAD XML DWT
  Product Family
BMP

DWT’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 DWT’yi BMP’ye dönüştürün.

DWT’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 DWT'yi BMP'ye Dönüştürme Adımları

  1. DWT 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, DWT'den BMP'ye C# Dönüşümünü gösterir

// load DWT in an instance of Image via its Load method
using (var image = Image.Load("template.dwt"))
{
// 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 DWT to BMP
image.Save("output.bmp", options);
}
 

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

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

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