HTML
JPG
CAD
XML
DWT
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ı
- DWT dosyasını Image.Load yöntemiyle yükleyin
- Sayfa yüksekliği ve genişliği ile bir CadRasterizationOptions nesnesi ayarlayın
- BmpOptions sınıfının bir örneğini oluşturun ve VectorRasterizationOptions özelliğini ayarlayın
- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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.