Skip to content

Instantly share code, notes, and snippets.

View aspose-com-gists's full-sized avatar

Aspose.com Gists aspose-com-gists

View GitHub Profile
// Set the path to the documents directory.
string dataDir = "files";
// Create an instance of the Map class.
using (var map = new Aspose.Gis.Rendering.Map(600, 300))
{
// Use the specified SRS.
map.SpatialReferenceSystem = Aspose.Gis.SpatialReferencing.SpatialReferenceSystem.Wgs84;
// Use the specified style to draw lines.
var symbolizer = new Aspose.Gis.Rendering.Symbolizers.SimpleLine() { Width = Aspose.Gis.Rendering.Measurement.Pixels(1) };
// Open a layer and add to the map.
@aspose-com-gists
aspose-com-gists / geojson-to-jpg.cs
Created July 14, 2025 13:49
Convert GeoJSON to JPG
using Aspose.Gis;
// The path to the documents directory.
string dataDir = "data";
// Initialize an object of the Map class.
using (var map = new Aspose.Gis.Rendering.Map(800, 400))
{
// Define the spatial reference system.
map.SpatialReferenceSystem = Aspose.Gis.SpatialReferencing.SpatialReferenceSystem.Wgs84;
// Use the specified style to draw lines.
var symbolizer = new Aspose.Gis.Rendering.Symbolizers.SimpleLine() { Width = Aspose.Gis.Rendering.Measurement.Pixels(2) };
@aspose-com-gists
aspose-com-gists / extract-word-pages-in-csharp.md
Created July 11, 2025 09:36
Extract Pages from a Word Document in C# Using Aspose.Words
@aspose-com-gists
aspose-com-gists / pptx-to-emf.cs
Created July 10, 2025 12:02
Convert PPTX to EMF
using Aspose.Slides;
namespace CSharp.Presentations.Conversion
{
class PPTXtoEMF
{
static void Main()
{
// The path to the documents directory.
string dataDir = "data";
string resultPath = dataDir + "result.emf";
@aspose-com-gists
aspose-com-gists / convert-ppt-to-swf.cs
Created July 9, 2025 09:59
Convert PPT to SWF in C#
using Aspose.Slides;
using Aspose.Slides.Export;
namespace CSharp.Presentations.Conversion
{
class ODPToPPTX
{
static void Main()
{
// The path to the documents directory.
@aspose-com-gists
aspose-com-gists / odp-to-pptx.cs
Created July 7, 2025 20:44
Convert ODP to PPTX
using Aspose.Slides;
using Aspose.Slides.Export;
namespace CSharp.Presentations.Conversion
{
class ODPToPPTX
{
static void Main()
{
// Define the path to the documents directory.
@aspose-com-gists
aspose-com-gists / create-dicom-file-in-csharp.md
Created July 7, 2025 17:47
Create DICOM File in C# with Aspose.Medical for .NET