This file contains hidden or 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
// Initialize an instance of the ImageVectorizer class | |
var vectorizer = new Aspose.Svg.ImageVectorization.ImageVectorizer | |
{ | |
// Set configuration | |
Configuration = | |
{ | |
// Set path builder | |
PathBuilder = new Aspose.Svg.ImageVectorization.BezierPathBuilder { | |
// Set trace smoother | |
TraceSmoother = new Aspose.Svg.ImageVectorization.ImageTraceSmoother(1), |
This file contains hidden or 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
// Load input SVG file | |
using (var document = new Aspose.Svg.SVGDocument(Path.Combine(dataDir, "smiley.svg"))) | |
{ | |
// Specify XPSRenderingOptions | |
var options = new Aspose.Svg.Rendering.Xps.XpsRenderingOptions() | |
{ | |
// Set PDF page size, margins, etc. | |
PageSetup = | |
{ |
This file contains hidden or 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
// Load image | |
com.aspose.imaging.Image image = com.aspose.imaging.Image.load("aspose-logo.png"); | |
// Cache image data | |
if (!image.isCached()) | |
{ | |
image.cacheData(); | |
} | |
// Specify width and height |
This file contains hidden or 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
// Load Excel file | |
Workbook book = new Workbook("input.xlsx"); | |
// Get the reference of the desired worksheet | |
Worksheet sheet = book.Worksheets[0]; | |
// Set image options | |
Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions(); | |
options.HorizontalResolution = 200; | |
options.VerticalResolution = 200; |
This file contains hidden or 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
// Initialize a MemoryStream to hold output document | |
MemoryStream stream = new MemoryStream(); | |
// Load input PUB file | |
Aspose.Pub.IPubParser parser = Aspose.Pub.PubFactory.CreateParser("input.pub"); | |
// Parse the input publisher file | |
Aspose.Pub.Document doc = parser.Parse(); | |
// Convert the PUB file to PDF and save result in a MemoryStream |
This file contains hidden or 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
// Create a new diagram | |
int pageNumber = 0; | |
String rectangleMaster = "Process", decisionMaster = "Decision", connectorMaster = "Dynamic connector"; | |
Diagram diagram = new Diagram("XANFLOWCHARTNEW.vss"); | |
double width = 1, height = 1, pinX = 4, pinY = 10; | |
long process1 = diagram.addShape(pinX, pinY, width, height, rectangleMaster, 0); | |
Shape processShape1 = diagram.getPages().getPage(pageNumber).getShapes().getShape(process1); |
This file contains hidden or 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
// Load a PSD file | |
com.aspose.psd.Image image = com.aspose.psd.Image.load("sample.psd"); | |
// Define the compression method | |
com.aspose.psd.imageoptions.PsdOptions options = new com.aspose.psd.imageoptions.PsdOptions(); | |
options.setCompressionMethod(com.aspose.psd.fileformats.psd.CompressionMethod.Raw); | |
// Save compressed PSD image | |
image.save("compressed.psd", options); |
This file contains hidden or 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
// Load the document into Aspose.Note. | |
com.aspose.note.Document doc = new com.aspose.note.Document("Aspose.one"); | |
// Create PdfSaveOptions class object | |
com.aspose.note.PdfSaveOptions options = new com.aspose.note.PdfSaveOptions(); | |
// Save the output PDF Document | |
doc.save("NoteToPDF.pdf", options); |
This file contains hidden or 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
// Load input STL image | |
using (var cadImage = (Aspose.CAD.FileFormats.Stl.StlImage)Aspose.CAD.Image.Load(dataDir + "input.stl")) | |
{ | |
// Initialize SvgOptions class instance | |
Aspose.CAD.ImageOptions.SvgOptions svgOptions = new Aspose.CAD.ImageOptions.SvgOptions(); | |
string outPath = dataDir + "STLtoSVGtest.svg"; | |
// Convert STL to SVG | |
cadImage.Save(outPath, svgOptions); |
This file contains hidden or 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
// Load the FBX file to be converted | |
Scene scene = new Scene(dataDir + "Test1.fbx"); | |
// Save in wavefront OBJ file format | |
scene.Save(dataDir + "output.obj", FileFormat.WavefrontOBJ); |