AddFromSvgFile Method (original) (raw)
Summary
Adds an SVG document new item from a disk file.
Syntax
Parameters
fileName
Disk file containing the image file.
pageNumber
The 1-based page number to load. Use this if fileName contains more than one page. Pass 1 to load
the first page found.
Return Value
The newly created item of successful
Example
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
using Leadtools.Svg;
string fileName = Path.Combine(LEAD_VARS.ImagesDir, "Leadtools.pdf");
_imageViewer.Items.AddFromSvgFile(fileName, 1);
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";
}