3D dosyasının biçimini C# .NET olarak algılayın
Contents
[
Hide
]
Using Aspose.3D for .NET API, developers may detect the format of supported 3D files in C# before opening it because the file extension does not guarantee that the file content is appropriate.
Detect Format rorogramming ample ample
Aşağıdaki C# örnek kodu, 3D dosyasının dosya biçimini (dosya yolunu veya akışını kullanarak) nasıl tespit edeceğinizi ve uzantısını kontrol edeceğinizi 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
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET | |
// Detect the format of a 3D file | |
FileFormat inputFormat = FileFormat.Detect("document.fbx"); | |
// Display the file format | |
Console.WriteLine("File Format: " + inputFormat.ToString()); |