#1
Posted
:
Monday, November 20, 2017 3:59:58 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 89
Was thanked: 4 time(s) in 4 post(s)
LEADTOOLS has a very simple method for Loading and Saving various file types.
Both of the attached console applications utilize the latest from LEADTOOLS v20.
C#Code:using Leadtools;
using Leadtools.Codecs;
namespace simpleSave_20
{
class Program
{
static void Main(string[] args)
{
//Enter you license here
RasterSupport.SetLicense("", "");
RasterCodecs codecs = new RasterCodecs();
RasterImage image = codecs.Load(@"/*Input File path*/", 0, CodecsLoadByteOrder.Bgr, 1, 1);
codecs.Save(image, @"/*Output File path*/", RasterImageFormat.Cmp, 8, 1, 1, 1, CodecsSavePageMode.Overwrite);
}
}
}
VBCode:Imports Leadtools
Imports Leadtools.Codecs
Module Module1
Sub Main()
'Enter you license and ke files here
RasterSupport.SetLicense("", "")
Dim codecs As New RasterCodecs()
Dim image As RasterImage = codecs.Load("Enter the File getting loaded here", 0, CodecsLoadByteOrder.Bgr, 1, 1)
codecs.Save(image, "Enter the File path and file name being saved to here", RasterImageFormat.Png, 16, 1, 1, 1, CodecsSavePageMode.Overwrite)
image.Dispose()
codecs.Dispose()
End Sub
End Module
Below are the simple Load and Save files that are displayed above.
C#VBChris Thompson
Developer Support Engineer
LEAD Technologies, Inc.
#2
Posted
:
Friday, April 20, 2018 9:18:25 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 89
Was thanked: 4 time(s) in 4 post(s)
This is a modified version of the above simpleSave_20 project that is now set up to take an SNP file and convert it to a PDF.
Chris Thompson
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.