Provides support for loading and saving raster image files.
Object Model
Syntax
Visual Basic (Declaration) | |
---|
Public Class RasterCodecs |
C# | |
---|
public class RasterCodecs |
Managed Extensions for C++ | |
---|
public __gc class RasterCodecs |
C++/CLI | |
---|
public ref class RasterCodecs |
Example
Visual Basic | Copy Code |
---|
RasterCodecs
Public Sub RasterCodecsExample()
RasterCodecs.Startup()
Dim codecs As RasterCodecs = New RasterCodecs()
Dim srcFileName As String = "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Image1.cmp"
Dim dstFileName As String = "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Image1_test.jpg"
Dim image As RasterImage = codecs.Load(srcFileName)
codecs.Save(image, dstFileName, RasterImageFormat.Jpeg, 0)
image.Dispose()
codecs.Dispose()
RasterCodecs.Shutdown()
End Sub |
C# | Copy Code |
---|
RasterCodecs public void RasterCodecsExample() { RasterCodecs.Startup(); RasterCodecs codecs = new RasterCodecs(); string srcFileName = @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Image1.cmp"; string dstFileName = @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Image1_test.jpg"; RasterImage image = codecs.Load(srcFileName); codecs.Save(image, dstFileName, RasterImageFormat.Jpeg, 0); // Clean up image.Dispose(); codecs.Dispose(); RasterCodecs.Shutdown(); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also