HTML
JPG
CAD
XML
IFC
GIF
تحويل IFC إلى GIF عبر C #
قم بتحويل IFC إلى GIF على الفور دون الحاجة إلى AutoCAD® أو أي برنامج عرض آخر.
لتحويل IFC إلى GIF ، سنستخدم Aspose.CAD for .NET API وهو غني بالميزات وقوي و سهل الاستخدام للتعامل مع المستندات وتحويلها API لمنصة C #. افتح مدير الحزم NuGet ، وابحث عن Aspose.CAD وقم بتثبيته. يمكنك أيضًا استخدام الأمر التالي من Package Manager Console.
أمر وحدة تحكم مدير الحزم
PM> Install-Package Aspose.CAD
خطوات تحويل IFC إلى GIF عبر C #
- قم بتحميل ملف IFC باستخدام طريقة Image.Load
- تعيين كائن CadRasterizationOptions مع ارتفاع الصفحة وعرضها
- قم بإنشاء مثيل لفئة GifOptions وقم بتعيين خاصية VectorRasterizationOptions الخاصة بها
- استدعاء طريقة Image.Save أثناء تمرير مسار الملف الناتج وكائن GifOptions
متطلبات التحويل
- Microsoft Windows أو نظام تشغيل متوافق مع .NET Framework و .NET Core و PHP و VBScript و Delphi و C ++ عبر COM Interop.
- بيئة التطوير مثل Microsoft Visual Studio.
- Aspose.CAD لـ .NET DLL المشار إليها في مشروعك.
يوضح نموذج الشفرة هذا تحويل IFC إلى 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 IFC in an instance of Image via its Load method | |
using (var image = Image.Load("template.ifc")) | |
{ | |
// 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 IFC to GIF | |
image.Save("output.gif", options); | |
} |
تطبيق مجاني لتحويل IFC إلى GIF
Check our live demos for IFC to GIF conversion with following benefits.
No need to download or setup anything.
No need to write any code.
Just upload your IFC file and hit the "Convert" button.
You will instantly get the download link for resultant GIF file.