Image3DViewList
Represents list of views for a 3D image.
public class Image3DViewList
Public Class Image3DViewList
Inheritance: ObjectImage3DViewList
Licensing Info
This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
The following example will place an 3D image on the page.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
' Create a 3D image
Dim MyImage3D As Image3D = New Image3D(imageFilePath, 0, 0, 500, 500)
' Set the Image3DViewList to the Views of 3D image
Dim MyImage3DViewList As Image3DViewList = MyImage3D.Views
Dim array() As Single = {-0.382683F, 0.92388F, -0.0000000616624F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -8.84868F, -4.0174F, 1.99746F}
MyImage3DViewList.Default.TransformationMatrix = array
MyImage3DViewList.Default.CenterOfOrbit = 9.76537F
' Add the 3D image to the page
MyPage.Elements.Add(MyImage3D)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string outputPath, string imageFilePath)
{
// Create a PDF Document
Document document = new Document();
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);
// Create a 3D image
Image3D image3D = new Image3D(imageFilePath, 0, 0, 500, 500);
// Set the Image3DViewList to the Views of 3D Image
Image3DViewList image3DViewList = image3D.Views;
float[] array = new float[] { -0.382683f, 0.92388f, -0.0000000616624f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -8.84868f, -4.0174f, 1.99746f };
image3DViewList.Default.TransformationMatrix = array;
image3DViewList.Default.CenterOfOrbit = 9.76537f;
// Add the 3D image to the page
page.Elements.Add(image3D);
// Save the PDF
document.Draw(outputPath);
}
}
Remarks
This class can be used to add view for a 3D image.
Properties
Back | Gets the back view of the 3D image. |
Bottom | Gets the bottom view of the 3D image. |
Default | Gets the default view of the 3D image. |
Front | Gets the fornt view of the 3D image. |
Isometric | Gets the isometric view of the 3D image. |
Left | Gets the left view of the 3D image. |
Right | Gets the right view of the 3D image. |
Top | Gets the top view of the 3D image. |
Methods
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |