←Select platform

RasterCodecs Constructor

Summary
Initializes a new instance of the RasterCodecs class.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public RasterCodecs() 
- (instancetype)init 
public RasterCodecs(String sharedLibsFolder) 
public: 
RasterCodecs(); 
__init__() # Default constructor 
Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
using Leadtools.Svg; 
 
 
public void RasterCodecsExample() 
{ 
   RasterCodecs codecs = new RasterCodecs(); 
 
   Console.WriteLine(codecs.Options); 
 
   string srcFileName = Path.Combine(LEAD_VARS.ImagesDir, "Image1.cmp"); 
   string dstFileName = Path.Combine(LEAD_VARS.ImagesDir, "Image1_test.jpg"); 
 
   RasterImage image = codecs.Load(srcFileName); 
   codecs.Save(image, dstFileName, RasterImageFormat.Jpeg, 0); 
 
   // Finalize cannot be called directly, it is invoked automatically. 
   // To clean up before exiting, use Dispose 
   image.Dispose(); 
   codecs.Dispose(); 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.5.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.