HTML
JPG
CAD
XML
DWT
GIF
सी # के माध्यम से सीएफएफ 2 को बीएमपी में कनवर्ट करें
AutoCAD® या किसी अन्य रेंडरिंग सॉफ़्टवेयर की आवश्यकता के बिना DWT को तुरंत GIF में बदलें।
DWT को GIF में बदलने के लिए, हम Aspose.CAD for .NET API का उपयोग करेंगे जो एक सुविधा संपन्न, शक्तिशाली और सी # प्लेटफॉर्म के लिए दस्तावेज़ हेरफेर और रूपांतरण एपीआई का उपयोग करना आसान है। NuGet पैकेज मैनेजर खोलें, Aspose.CAD खोजें और इंस्टॉल करें। आप पैकेज मैनेजर कंसोल से निम्न कमांड का भी उपयोग कर सकते हैं।
पैकेज मैनेजर कंसोल कमांड
PM> Install-Package Aspose.CAD
DWT को C# के माध्यम से GIF में बदलने के चरण
- छवि के साथ DWT फ़ाइल लोड करें। लोड विधि
- पृष्ठ ऊंचाई और चौड़ाई के साथ CadRasterizationOptions का ऑब्जेक्ट सेट करें
- GifOptions वर्ग का एक उदाहरण बनाएं और इसकी वेक्टररास्टराइजेशनऑप्शन संपत्ति सेट करें
- GifOptions के परिणामी फ़ाइल पथ और ऑब्जेक्ट को पास करते समय Image.Save विधि को कॉल करें
रूपांतरण आवश्यकताएँ
- माइक्रोसॉफ्ट विंडोज या कॉम इंटरऑप के माध्यम से .NET फ्रेमवर्क, .NET कोर, और PHP, VBScript, डेल्फी, सी ++ के साथ संगत ओएस।
- माइक्रोसॉफ्ट विजुअल स्टूडियो जैसे विकास का माहौल।
- आपके प्रोजेक्ट में संदर्भित .NET DLL के लिए Aspose.CAD।
यह नमूना कोड DWT से GIF C# रूपांतरण दिखाता है
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 GifOptions | |
var options = new ImageOptions.GifOptions(); | |
// set the VectorRasterizationOptions property as CadRasterizationOptions | |
options.VectorRasterizationOptions = rasterizationOptions; | |
// export DWT to GIF | |
image.Save("output.gif", options); | |
} |
DWT को GIF में बदलने के लिए फ्री ऐप
Check our live demos for DWT to GIF 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 GIF file.