Class Pdf3DRendermode
Represents the rendering mode of the 3D artwork.
Inheritance
System.Object
Pdf3DRendermode
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class Pdf3DRendermode : IPdfWrapper
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode();
renderMode.Style = Pdf3DRenderStyle.Solid;
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.CreaseValue = 10f;
//Create a new Pdf3DView.
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode()
renderMode.Style = Pdf3DRenderStyle.Solid
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.CreaseValue = 10.0F
'Create a new Pdf3DView.
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Constructors
Pdf3DRendermode()
Initializes a new instance of the Pdf3DRendermode class.
Declaration
public Pdf3DRendermode()
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode();
renderMode.Style = Pdf3DRenderStyle.Solid;
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.CreaseValue = 10f;
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode()
renderMode.Style = Pdf3DRenderStyle.Solid
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.CreaseValue = 10.0F
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
See Also
Pdf3DRendermode(Pdf3DRenderStyle)
Initializes a new instance of the Pdf3DRendermode class with specified rendering style.
Declaration
public Pdf3DRendermode(Pdf3DRenderStyle style)
Parameters
Type | Name | Description |
---|---|---|
Pdf3DRenderStyle | style | The Pdf3DRenderStyle object specifies the rendering style of the 3D artwork. |
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid);
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.Opacity = 100f;
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid)
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.Opacity = 100.0F
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
See Also
Properties
AuxilaryColor
Gets or sets the auxiliary color.
Declaration
public PdfColor AuxilaryColor { get; set; }
Property Value
Type | Description |
---|---|
PdfColor |
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode();
renderMode.Style = Pdf3DRenderStyle.Solid;
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.CreaseValue = 10f;
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page.
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode()
renderMode.Style = Pdf3DRenderStyle.Solid
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.CreaseValue = 10.0F
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
See Also
CreaseValue
Gets or sets the crease value.
Declaration
public float CreaseValue { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
The crease value is specified in degrees, from 0 to 360.
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode();
renderMode.Style = Pdf3DRenderStyle.Solid;
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.CreaseValue = 10f;
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode()
renderMode.Style = Pdf3DRenderStyle.Solid
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.CreaseValue = 10.0F
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
See Also
FaceColor
Gets or sets the face color.
Declaration
public PdfColor FaceColor { get; set; }
Property Value
Type | Description |
---|---|
PdfColor |
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode();
renderMode.Style = Pdf3DRenderStyle.Solid;
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.CreaseValue = 10f;
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode()
renderMode.Style = Pdf3DRenderStyle.Solid
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.CreaseValue = 10.0F
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
See Also
Opacity
Gets or sets the rendering opacity.
Declaration
public float Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
The opacity is given in percents, 100 is full opacity, 0 is no opacity.
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid);
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.Opacity = 100f;
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid)
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.Opacity = 100.0F
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
See Also
Style
Gets or sets the type of the projection.
Declaration
public Pdf3DRenderStyle Style { get; set; }
Property Value
Type | Description |
---|---|
Pdf3DRenderStyle |
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode();
renderMode.Style = Pdf3DRenderStyle.Solid;
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.CreaseValue = 10f;
//Create a new Pdf3DView.
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page.
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode()
renderMode.Style = Pdf3DRenderStyle.Solid
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.CreaseValue = 10.0F
'Create a new Pdf3DView.
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
See Also
Methods
Initialize()
Initializes annotation object.
Declaration
protected virtual void Initialize()
Save()
Saves an annotation.
Declaration
protected virtual void Save()