OLE 객체 관리
Contents
[
Hide
]객체 링크와 임베딩(Object Linking and Embedding, OLE)은 Microsoft Windows 기능으로, 원본 애플리케이션에서 정보를 편집할 수 있는 능력을 유지하면서 정보를 한 애플리케이션에서 다른 애플리케이션으로 복사하거나 이동할 수 있게 해줍니다. 기본적으로 OLE는 서로 다른 애플리케이션의 데이터를 하나의 문서로 결합합니다. OLE를 사용하려면 OLE를 지원하는 소스 애플리케이션과 목적지 애플리케이션이 필요합니다.
임베디드 OLE 객체 내보내기
Aspose.CAD for .NET은 이제 DWG 형식에서 임베디드 OLE 객체를 내보내는 것을 지원합니다. 이 문서에서는 Aspose.CAD를 사용하여 DWG 형식에서 PNG로 임베디드 OLE 객체를 내보내는 방법을 보여줍니다.
이 기능을 달성하기 위한 샘플 코드는 아래에 제공됩니다.
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
// The path to the documents directory. | |
string MyDir = RunExamples.GetDataDir_DWGDrawings(); | |
string[] files = new string[] { "D ZD junior D10m H2m.dwg", "ZD - Senior D6m H2m45.dwg" }; | |
PngOptions pngOptions = new PngOptions { }; | |
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions(); | |
pngOptions.VectorRasterizationOptions = rasterizationOptions; | |
rasterizationOptions.Layouts = new string[] { "Layout1" }; | |
foreach (string file in files) | |
{ | |
using (CadImage cadImage = (CadImage)Image.Load(MyDir + file)) | |
{ | |
cadImage.Save(MyDir + file + "_out.png", pngOptions); | |
} | |
} |