Node.js를 사용하여 프레젠테이션에 3D 효과 만들기
개요
Aspose.Slides for Node.js via Java은 도형 및 텍스트에 대한 PowerPoint 스타일 3D 서식을 만들고, 편집하고, 보존하며 렌더링할 수 있습니다. 이 문서에서는 회전, 돌출, 베벨, 조명, 재료, 그라디언트 또는 이미지 채우기, 그리고 3D 텍스트와 같은 3D 효과를 다룹니다.
Note
이 문서는 PowerPoint 도형 및 텍스트에 대한 3D 서식 효과에 관한 것입니다. 독립형 3D 모델 파일을 삽입하거나 편집하는 내용은 포함하지 않습니다. 슬라이드를 이미지, PDF 또는 HTML로 내보낼 때 Aspose.Slides는 해당 3D 효과를 내보낸 2D 출력에 렌더링합니다.3D 서식 개념
도형에 3D 서식을 적용하려면 Shape.getThreeDFormat 메서드를 사용합니다. 이 메서드는 해당 도형의 3D 장면을 제어하는 ThreeDFormat을 반환합니다.
텍스트의 경우에는 TextFrameFormat.getThreeDFormat 메서드를 사용합니다. 이것은 도형 본문이 아닌 텍스트 프레임에 3D 서식을 적용합니다.
가장 중요한 API 멤버는 다음과 같습니다:
| API 멤버 | 제어 대상 | 사용 시기 |
|---|---|---|
| getCamera | 시점, 사전 설정 카메라 유형, 회전, 확대/축소 및 원근 | 3D 공간에서 객체를 회전하거나 PowerPoint 3D 회전 사전 설정과 일치시킵니다. |
| getLightRig | 조명 사전 설정, 방향 및 조명 회전 | 3D 표면에서 하이라이트와 그림자 표시 방식을 변경합니다. |
| getMaterial와 setMaterial | 평면, 매트, 플라스틱 또는 금속과 같은 표면 재료 | 같은 형상의 외관을 더 평평하게, 부드럽게, 광택 있게 또는 금속처럼 보이게 합니다. |
| getExtrusionHeight와 setExtrusionHeight | 도형이 앞면에서 뒤쪽으로 얼마나 뻗는지 | 평면 도형을 눈에 보이는 두꺼운 3D 객체로 변환합니다. |
| getExtrusionColor | 돌출된 측면의 색상 | 깊이를 보이게 하거나 측면 색상을 앞면 채우기와 맞춥니다. |
| getDepth와 setDepth | PowerPoint 3D 서식에서 사용되는 추가 3D 깊이 | 특히 베벨 및 재료 설정과 함께 도형이나 텍스트의 깊이를 미세 조정합니다. |
| getBevelTop와 getBevelBottom | 앞면과 뒤면에 올라가 있거나 둥근 가장자리 | 날카로운 평면 대신 부드럽거나 성형된 가장자리를 추가합니다. |
| getContourColor, getContourWidth와 setContourWidth | 3D 객체 주위의 외곽선 | 렌더링된 출력에서 객체 경계를 강조합니다. |
3D 도형 만들기
도형이 설득력 있게 3D로 보이려면 일반적으로 네 가지 설정이 필요합니다:
- 카메라 설정 - 기본 정면 뷰가 돌출을 숨길 수 있기 때문입니다.
- 조명 설정 - 조명이 면과 측면을 읽기 쉽게 만들기 때문입니다.
- 재료 설정 - 표면이 빛 렌더링 방식에 영향을 주기 때문입니다.
- 돌출 또는 깊이 설정 - 평면 도형에 두께가 필요하기 때문입니다.
다음 예제는 사각형을 만든 뒤 앞면에 텍스트를 추가하고 3D 서식을 적용합니다. 카메라 회전 값은 도이며, 돌출 높이는 100 포인트입니다. 이 예제는 슬라이드를 기본 크기의 두 배인 PNG 이미지로 렌더링하고 프레젠테이션을 PPTX로 저장합니다:
const aspose = { slides: require("aspose.slides.via.java") };
const java = require("java");
const imageScale = 2;
const presentation = new aspose.slides.Presentation();
try {
const slide = presentation.getSlides().get_Item(0);
const shape = slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 200, 150, 200, 200);
shape.getTextFrame().setText("3D");
shape.getTextFrame().getParagraphs().get_Item(0).getParagraphFormat().getDefaultPortionFormat().setFontHeight(64);
shape.getFillFormat().setFillType(java.newByte(aspose.slides.FillType.Solid));
const fillColor = java.newInstanceSync("java.awt.Color", 100, 149, 237);
shape.getFillFormat().getSolidFillColor().setColor(fillColor);
shape.getThreeDFormat().getCamera().setCameraType(aspose.slides.CameraPresetType.OrthographicFront);
shape.getThreeDFormat().getCamera().setRotation(20, 30, 40);
shape.getThreeDFormat().getLightRig().setLightType(aspose.slides.LightRigPresetType.Flat);
shape.getThreeDFormat().getLightRig().setDirection(aspose.slides.LightingDirection.Top);
shape.getThreeDFormat().setMaterial(aspose.slides.MaterialPresetType.Flat);
shape.getThreeDFormat().setExtrusionHeight(100);
shape.getThreeDFormat().getExtrusionColor().setColor(java.getStaticFieldValue("java.awt.Color", "BLUE"));
const thumbnail = slide.getImage(imageScale, imageScale);
try {
thumbnail.save("shape_3d.png", aspose.slides.ImageFormat.Png);
} finally {
thumbnail.dispose();
}
presentation.save("shape_3d.pptx", aspose.slides.SaveFormat.Pptx);
} finally {
presentation.dispose();
}
렌더링된 슬라이드 이미지에서는 사각형이 두꺼운 3D 블록으로 표시됩니다:

카메라로 도형 회전하기
PowerPoint에서 3D 회전은 3-D 회전 창에서 설정합니다. X, Y, Z 회전 값은 카메라 API를 통해 설정하는 회전과 대응합니다.

In Aspose.Slides에서는 ThreeDFormat.getCamera를 통해 카메라에 접근합니다. 이 예제는 사각형을 만들고 정사영 정면 뷰를 선택한 뒤 X, Y, Z 회전을 각각 20°, 30°, 40°로 설정합니다. 파일을 저장하지 않고 메모리상에서 도형을 구성합니다:
const aspose = { slides: require("aspose.slides.via.java") };
const presentation = new aspose.slides.Presentation();
try {
const slide = presentation.getSlides().get_Item(0);
const shape = slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 200, 150, 200, 200);
shape.getThreeDFormat().getCamera().setCameraType(aspose.slides.CameraPresetType.OrthographicFront);
shape.getThreeDFormat().getCamera().setRotation(20, 30, 40);
} finally {
presentation.dispose();
}
카메라는 뷰어가 객체를 보는 방식을 변경해야 할 때 사용합니다. 이것은 슬라이드의 2D 도형 형상을 변경하지 않으며, PowerPoint와 Aspose.Slides가 렌더링 시 사용하는 3D 시점을 변경합니다.
템플릿 도형에서 카메라 방향 복사
템플릿 도형의 방향을 맞추려면 getCameraType으로 카메라 사전 설정을, getRotation으로 회전 각도를 읽습니다. 이 예제는 template.pptx를 열고 첫 번째 슬라이드의 첫 번째 도형에서 두 번째 도형으로 카메라 방향을 복사합니다. 두 도형 모두 이미 3D 조명을 가지고 있으며 두 번째 도형에는 명시적인 카메라 회전이 없습니다.
각도는 도로 표시됩니다. 인덱스 0은 위도, 1은 경도, 2는 회전을 의미합니다. 이 순서대로 setRotation에 전달합니다. 원본이 null을 반환하면 명시적 회전이 없는 것이므로 두 번째 도형의 각도를 설정하지 않습니다. (0, 0, 0)과 같은 명시적 회전은 세 개의 0을 반환하며 복사해야 합니다.
const aspose = { slides: require("aspose.slides.via.java") };
const presentation = new aspose.slides.Presentation("template.pptx");
try {
const shapes = presentation.getSlides().get_Item(0).getShapes();
const sourceCamera = shapes.get_Item(0).getThreeDFormat().getCamera();
const destinationCamera = shapes.get_Item(1).getThreeDFormat().getCamera();
destinationCamera.setCameraType(sourceCamera.getCameraType());
const angles = sourceCamera.getRotation();
if (angles != null) {
destinationCamera.setRotation(angles[0], angles[1], angles[2]);
}
presentation.save("camera-copy.pptx", aspose.slides.SaveFormat.Pptx);
} finally {
presentation.dispose();
}
camera-copy.pptx를 PowerPoint에서 다시 열면 오른쪽 화살표가 왼쪽 사각형과 동일한 카메라 사전 설정 및 회전을 가집니다. 두 도형 모두 동일한 조명 및 돌출 깊이를 사용합니다.

돌출 및 깊이 추가
돌출은 도형을 앞면 뒤로 연장하여 두껍게 보이게 합니다. PowerPoint에서 깊이 제어는 이 가시적인 두께를 지정하고, 색상 제어는 측면의 색상을 지정합니다.

ThreeDFormat.setExtrusionHeight를 사용해 두께를 설정하고 ThreeDFormat.getExtrusionColor으로 측면 색상을 가져옵니다. 이 예제는 사각형에 100 포인트 돌출을 적용하고 보라색 측면을 갖게 하며 카메라를 회전시켜 두께를 드러냅니다. 파일을 저장하지 않고 메모리에서 도형을 구성합니다:
const aspose = { slides: require("aspose.slides.via.java") };
const java = require("java");
const presentation = new aspose.slides.Presentation();
try {
const slide = presentation.getSlides().get_Item(0);
const shape = slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 200, 150, 200, 200);
const extrusionColor = java.newInstanceSync("java.awt.Color", 128, 0, 128);
shape.getThreeDFormat().getCamera().setCameraType(aspose.slides.CameraPresetType.OrthographicFront);
shape.getThreeDFormat().getCamera().setRotation(20, 30, 40);
shape.getThreeDFormat().getLightRig().setLightType(aspose.slides.LightRigPresetType.Flat);
shape.getThreeDFormat().getLightRig().setDirection(aspose.slides.LightingDirection.Top);
shape.getThreeDFormat().setMaterial(aspose.slides.MaterialPresetType.Flat);
shape.getThreeDFormat().setExtrusionHeight(100);
shape.getThreeDFormat().getExtrusionColor().setColor(extrusionColor);
} finally {
presentation.dispose();
}
ThreeDFormat.setDepth 메서드는 3D 도형의 깊이를 설정합니다. setExtrusionHeight 메서드는 이 예제와 같이 돌출 효과의 높이를 제어합니다.
그라디언트 또는 이미지 채우기를 3D 효과와 함께 사용하기
3D 서식은 도형 채우기와 별개입니다. 앞면에 단색, 그라디언트, 패턴 또는 이미지 채우기를 적용하면서도 동일한 카메라, 조명, 재료 및 돌출 설정을 사용할 수 있습니다.
이 예제는 앞면에 파란색에서 주황색으로 변하는 그라디언트를 적용하고 150 포인트 돌출에 어두운 주황색을 적용합니다. 그라디언트 정지점 0과 100은 그라디언트의 시작과 끝을 나타냅니다. 카메라 회전 값은 도이며, 슬라이드는 기본 크기의 두 배인 PNG 이미지로 렌더링됩니다:
const aspose = { slides: require("aspose.slides.via.java") };
const java = require("java");
const imageScale = 2;
const presentation = new aspose.slides.Presentation();
try {
const slide = presentation.getSlides().get_Item(0);
const shape = slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 200, 150, 250, 250);
shape.getTextFrame().setText("3D Gradient");
shape.getTextFrame().getParagraphs().get_Item(0).getParagraphFormat().getDefaultPortionFormat().setFontHeight(64);
shape.getFillFormat().setFillType(java.newByte(aspose.slides.FillType.Gradient));
shape.getFillFormat().getGradientFormat().getGradientStops().add(0, java.getStaticFieldValue("java.awt.Color", "BLUE"));
const orangeColor = java.newInstanceSync("java.awt.Color", 255, 165, 0);
shape.getFillFormat().getGradientFormat().getGradientStops().add(100, orangeColor);
shape.getThreeDFormat().getCamera().setCameraType(aspose.slides.CameraPresetType.OrthographicFront);
shape.getThreeDFormat().getCamera().setRotation(10, 20, 30);
shape.getThreeDFormat().getLightRig().setLightType(aspose.slides.LightRigPresetType.Flat);
shape.getThreeDFormat().getLightRig().setDirection(aspose.slides.LightingDirection.Top);
shape.getThreeDFormat().setMaterial(aspose.slides.MaterialPresetType.Flat);
const extrusionColor = java.newInstanceSync("java.awt.Color", 255, 140, 0);
shape.getThreeDFormat().setExtrusionHeight(150);
shape.getThreeDFormat().getExtrusionColor().setColor(extrusionColor);
const thumbnail = slide.getImage(imageScale, imageScale);
try {
thumbnail.save("gradient_3d.png", aspose.slides.ImageFormat.Png);
} finally {
thumbnail.dispose();
}
} finally {
presentation.dispose();
}

이미지 채우기를 사용하려면 프레젠테이션에 이미지를 추가하고 도형 채우기에 할당합니다. 이 예제는 작업 디렉터리에 “image.jpg"라는 파일이 존재해야 합니다. 이미지를 사각형에 맞게 늘리고 150 포인트 돌출을 적용하며 카메라 회전을 도 단위로 설정합니다. 파일을 저장하거나 렌더링하지 않고 메모리에서 도형을 구성합니다:
const aspose = { slides: require("aspose.slides.via.java") };
const java = require("java");
const presentation = new aspose.slides.Presentation();
try {
const slide = presentation.getSlides().get_Item(0);
const shape = slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 200, 150, 250, 250);
const sourceImage = aspose.slides.Images.fromFile("image.jpg");
let image;
try {
image = presentation.getImages().addImage(sourceImage);
} finally {
sourceImage.dispose();
}
shape.getFillFormat().setFillType(java.newByte(aspose.slides.FillType.Picture));
shape.getFillFormat().getPictureFillFormat().getPicture().setImage(image);
shape.getFillFormat().getPictureFillFormat().setPictureFillMode(aspose.slides.PictureFillMode.Stretch);
const extrusionColor = java.newInstanceSync("java.awt.Color", 255, 140, 0);
shape.getThreeDFormat().getCamera().setCameraType(aspose.slides.CameraPresetType.OrthographicFront);
shape.getThreeDFormat().getCamera().setRotation(10, 20, 30);
shape.getThreeDFormat().getLightRig().setLightType(aspose.slides.LightRigPresetType.Flat);
shape.getThreeDFormat().getLightRig().setDirection(aspose.slides.LightingDirection.Top);
shape.getThreeDFormat().setMaterial(aspose.slides.MaterialPresetType.Flat);
shape.getThreeDFormat().setExtrusionHeight(150);
shape.getThreeDFormat().getExtrusionColor().setColor(extrusionColor);
} finally {
presentation.dispose();
}

텍스트에 3D 서식 적용하기
도형 3D 서식은 도형 본문에 영향을 줍니다. 텍스트 3D 서식은 텍스트 프레임에 영향을 줍니다. 이는 문자 자체에 돌출, 재료, 조명 및 카메라 설정이 필요한 WordArt와 같은 효과에 유용합니다.
다음 예제는 주황색-흰색 격자 패턴 텍스트를 만들고 위쪽 아치를 적용한 뒤 TextFrameFormat.getThreeDFormat을 통해 3D 설정을 구성합니다. 돌출 높이와 깊이는 포인트 단위이며, 조명 회전은 도 단위입니다. 도형 채우기와 외곽선을 숨겨 텍스트만 보이게 합니다. 이 예제는 기본 슬라이드 크기의 두 배인 PNG 이미지로 렌더링하고 프레젠테이션을 PPTX로 저장합니다:
const aspose = { slides: require("aspose.slides.via.java") };
const java = require("java");
const imageScale = 2;
const presentation = new aspose.slides.Presentation();
try {
const slide = presentation.getSlides().get_Item(0);
const shape = slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 200, 150, 250, 250);
shape.getFillFormat().setFillType(java.newByte(aspose.slides.FillType.NoFill));
shape.getLineFormat().getFillFormat().setFillType(java.newByte(aspose.slides.FillType.NoFill));
shape.getTextFrame().setText("3D Text");
const portion = shape.getTextFrame().getParagraphs().get_Item(0).getPortions().get_Item(0);
portion.getPortionFormat().getFillFormat().setFillType(java.newByte(aspose.slides.FillType.Pattern));
const patternColor = java.newInstanceSync("java.awt.Color", 255, 140, 0);
portion.getPortionFormat().getFillFormat().getPatternFormat().getForeColor().setColor(patternColor);
portion.getPortionFormat().getFillFormat().getPatternFormat().getBackColor().setColor(java.getStaticFieldValue("java.awt.Color", "WHITE"));
portion.getPortionFormat().getFillFormat().getPatternFormat().setPatternStyle(java.newByte(aspose.slides.PatternStyle.LargeGrid));
shape.getTextFrame().getParagraphs().get_Item(0).getParagraphFormat().getDefaultPortionFormat().setFontHeight(128);
const textFrameFormat = shape.getTextFrame().getTextFrameFormat();
textFrameFormat.setTransform(java.newByte(aspose.slides.TextShapeType.ArchUp));
textFrameFormat.getThreeDFormat().setExtrusionHeight(3.5);
textFrameFormat.getThreeDFormat().setDepth(3);
textFrameFormat.getThreeDFormat().setMaterial(aspose.slides.MaterialPresetType.Plastic);
textFrameFormat.getThreeDFormat().getLightRig().setDirection(aspose.slides.LightingDirection.Top);
textFrameFormat.getThreeDFormat().getLightRig().setLightType(aspose.slides.LightRigPresetType.Balanced);
textFrameFormat.getThreeDFormat().getLightRig().setRotation(0, 0, 40);
textFrameFormat.getThreeDFormat().getCamera().setCameraType(aspose.slides.CameraPresetType.PerspectiveContrastingRightFacing);
const thumbnail = slide.getImage(imageScale, imageScale);
try {
thumbnail.save("text_3d.png", aspose.slides.ImageFormat.Png);
} finally {
thumbnail.dispose();
}
presentation.save("text_3d.pptx", aspose.slides.SaveFormat.Pptx);
} finally {
presentation.dispose();
}

3D 도형에서 텍스트를 평면으로 유지하기
도형의 3D 외관을 유지하면서 텍스트를 읽기 쉽게 하려면 TextFrame.getTextFrameFormat를 통해 TextFrameFormat.setKeepTextFlat를 호출합니다. 값이 true이면 텍스트가 3D 장면에서 제외됩니다. false이면 텍스트가 장면에 참여해 3D 방향을 따릅니다.
이 설정은 도형의 3D 서식을 제거하지 않습니다. 카메라, 조명, 재료 및 돌출은 Shape.getThreeDFormat을 통해 계속 구성됩니다. 또한 일반 회전과도 다릅니다. Shape.setRotation은 슬라이드 평면에서 도형을 회전시키고, TextFrameFormat.setRotationAngle은 텍스트의 바운딩 박스 내에서 사용자 정의 회전을 제어합니다. 텍스트를 3D 장면에서 제외해도 이러한 각도는 초기화되지 않습니다.
다음 독립 실행형 예제는 텍스트가 있는 파란 사각형을 생성하고 원본 옆에 복제합니다. 두 도형 모두 동일한 3D 서식을 가지고 있으며 텍스트 설정만 다릅니다: 왼쪽은 false, 오른쪽은 true. 카메라 각도는 도이며, 돌출 높이는 40 포인트입니다. 이 예제는 프레젠테이션을 PPTX로 저장하고 비교 슬라이드를 기본 크기의 두 배인 PNG로 렌더링합니다:
const aspose = { slides: require("aspose.slides.via.java") };
const java = require("java");
const presentation = new aspose.slides.Presentation();
try {
const slide = presentation.getSlides().get_Item(0);
const shape = slide.getShapes().addAutoShape(aspose.slides.ShapeType.Rectangle, 70, 160, 240, 140);
shape.getTextFrame().setText("Readable text");
shape.getTextFrame().getParagraphs().get_Item(0).getParagraphFormat().getDefaultPortionFormat().setFontHeight(28);
shape.getTextFrame().getParagraphs().get_Item(0).getParagraphFormat().setAlignment(java.newByte(aspose.slides.TextAlignment.Center));
shape.getTextFrame().getTextFrameFormat().setAnchoringType(java.newByte(aspose.slides.TextAnchorType.Center));
shape.getFillFormat().setFillType(java.newByte(aspose.slides.FillType.Solid));
const fillColor = java.newInstanceSync("java.awt.Color", 100, 149, 237);
shape.getFillFormat().getSolidFillColor().setColor(fillColor);
shape.getThreeDFormat().getCamera().setCameraType(aspose.slides.CameraPresetType.OrthographicFront);
shape.getThreeDFormat().getCamera().setRotation(30, 30, 0);
shape.getThreeDFormat().getLightRig().setLightType(aspose.slides.LightRigPresetType.Flat);
shape.getThreeDFormat().getLightRig().setDirection(aspose.slides.LightingDirection.Top);
shape.getThreeDFormat().setMaterial(aspose.slides.MaterialPresetType.Flat);
shape.getThreeDFormat().setExtrusionHeight(40);
const extrusionColor = java.newInstanceSync("java.awt.Color", 65, 105, 225);
shape.getThreeDFormat().getExtrusionColor().setColor(extrusionColor);
shape.getTextFrame().getTextFrameFormat().setKeepTextFlat(false);
const flatTextShape = slide.getShapes().addClone(shape, 400, 160);
flatTextShape.getTextFrame().getTextFrameFormat().setKeepTextFlat(true);
presentation.save("keep_text_flat.pptx", aspose.slides.SaveFormat.Pptx);
const image = slide.getImage(2, 2);
try {
image.save("keep_text_flat.png", aspose.slides.ImageFormat.Png);
} finally {
image.dispose();
}
} finally {
presentation.dispose();
}
왼쪽에서는 텍스트가 3D 방향을 따릅니다. 오른쪽에서는 텍스트가 평면으로 유지되어 읽기 쉽습니다. 두 사각형 모두 동일한 가시적인 돌출 및 3D 방향을 유지합니다.

내보내기 및 렌더링 동작
Aspose.Slides는 PPTX와 같은 PowerPoint 형식으로 저장할 때 3D 서식을 유지합니다. 고정 레이아웃 형식으로 렌더링하거나 내보낼 때 3D 장면은 2D 결과로 래스터화되거나 출력에 그려집니다. 이는 슬라이드를 PNG로 렌더링하거나, PDF로 내보내거나, HTML로 내보내거나, 비디오 변환을 위한 프레임을 생성할 때 적용됩니다.
다음 사항을 기억하세요:
- 내보낸 이미지와 PDF는 상호 작용이 불가능합니다. 객체는 내보낸 후 뷰어가 회전시킬 수 없습니다.
- 최종 모양은 카메라, 조명 리그, 재료, 돌출, 채우기 및 슬라이드 스케일링의 조합에 따라 달라집니다.
- 효과적인 도형 속성 값을 확인하려면 효과적인 도형 속성을 읽으십시오.
- 일부 출력 형식은 편집 가능한 PowerPoint 3D 서식을 저장할 수 없습니다. 이러한 형식에서는 시각적 결과가 편집 가능한 3D 설정으로 보존되는 것이 아니라 렌더링됩니다.
FAQ
Aspose.Slides가 인터랙티브 3D 프레젠테이션을 만들 수 있나요?
Aspose.Slides는 도형과 텍스트에 대한 PowerPoint 3D 효과를 만들고 렌더링합니다. 내보낸 이미지, PDF 또는 HTML 페이지를 뷰어가 회전시킬 수 있는 인터랙티브 3D 장면으로 만들지는 않습니다. PPTX에서는 해당 형식이 지원되는 경우 PowerPoint에서 3D 서식이 편집 가능한 상태로 유지됩니다.
3D 모델과 3D 효과의 차이점은 무엇인가요?
3D 모델은 프레젠테이션에 삽입되는 별도의 3D 객체입니다. 3D 효과는 회전, 돌출, 베벨, 조명 및 재료와 같이 일반 PowerPoint 도형이나 텍스트에 적용되는 서식입니다. 이 문서는 3D 효과에 대해 다룹니다.
보이는 3D 도형에 필요한 설정은 무엇인가요?
최소한 카메라 회전과 돌출 또는 깊이 중 하나를 설정해야 합니다. 실제로는 조명 리그와 재료도 설정하여 렌더링된 면에 명확한 하이라이트와 그림자가 나타나도록 합니다.
도형과 텍스트 모두에 3D 효과를 적용할 수 있나요?
예. 도형 본문에는 Shape.getThreeDFormat를, 텍스트에는 TextFrameFormat.getThreeDFormat를 사용합니다.
이미지, PDF, HTML 또는 비디오 프레임으로 내보낼 때 3D 효과가 표시되나요?
예. Aspose.Slides는 슬라이드 이미지, PDF 출력, HTML 출력 및 비디오 변환에 사용되는 프레임을 생성할 때 3D 효과를 렌더링합니다. 내보낸 출력에는 렌더링된 형태가 포함되며, 편집 가능한 3D 객체가 포함되지 않습니다.
상속 및 테마 설정 적용 후 최종 3D 값을 읽을 수 있나요?
예. 도형 효과 속성에 설명된 효과적인 서식 API를 사용하여 최종 카메라, 조명 리그, 베벨 및 관련 3D 값을 읽을 수 있습니다.