IFC-Zeichnungen
Contents
[
Hide
]Exportieren im IFC-Format nach PNG
Mit Aspose.CAD für Java können Entwickler eine IFC-Datei nach PNG exportieren. Im folgenden Code wird gezeigt, wie auf die IFC-Datei zugegriffen und diese mit CadRasterizationOptions und PngOptions in PNG konvertiert wird.
Beispielscode
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
String fileName = dataDir +"example.ifc"; | |
IfcImage cadImage = (IfcImage)Image.load(fileName); | |
CadRasterizationOptions vectorOptions = new CadRasterizationOptions(); | |
vectorOptions.setPageWidth(1500); | |
vectorOptions.setPageHeight(1500); | |
PngOptions pngOptions = new PngOptions(); | |
pngOptions.setVectorRasterizationOptions(vectorOptions); | |
String outPath = dataDir + "example.png"; | |
cadImage.save(dataDir, pngOptions); | |