OBJファイルフォーマットの操作
Contents
[
Hide
]Aspose.CADは現在OBJファイルフォーマットをサポートしています。OBJファイルフォーマットは、テクスチャマップ、3D座標、ポリゴン面、およびその他のオブジェクト情報を含む3Dジオメトリです。
OBJをPDFに変換
Aspose.CAD for .NETを使用すると、OBJファイルをPDFに変換できます。OBJをPDFに変換するには、以下のコードスニペットを使用してください。
This file contains hidden or 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
string MyDir = RunExamples.GetDataDir_OBJDrawings(); | |
using (Aspose.CAD.Image CADDoc = Aspose.CAD.Image.Load(MyDir + "example-580-W.obj")) | |
{ | |
Aspose.CAD.ImageOptions.CadRasterizationOptions rasterizationOptions = | |
new Aspose.CAD.ImageOptions.CadRasterizationOptions(); | |
rasterizationOptions.PageWidth = CADDoc.Size.Width; | |
rasterizationOptions.PageHeight = CADDoc.Size.Height; | |
Aspose.CAD.ImageOptions.PdfOptions CADf = new Aspose.CAD.ImageOptions.PdfOptions(); | |
CADf.VectorRasterizationOptions = rasterizationOptions; | |
CADDoc.Save(MyDir + "example-580-W_custom.pdf", CADf); | |
} | |