Export leadtools scanner image to disk (jpg or bmp format)

858 views Asked by At

I am using leadtools to get image from scanner driver, how can I save that image to disk (jpg or bmp or any format)?

I am using these dll files:

- Leadtools.dll
- Leadtools.Twain.dll
- Leadtools.Codecs.dll
- Leadtools.WinForms.dll
- Leadtools.WinForms.CommonDialogs.File.dll

thanks & regards

1

There are 1 answers

2
LEADTOOLS Support On BEST ANSWER

If the image was acquired successfully from the scanner into a RasterImage object, you can use the Leadtools.Codecs.RasterCodecs.Save() method to save either to disk file or stream.

You will also need the appropriate codec assembly such as Leadtools.Codecs.Bmp.dll for BMP or Leadtools.Codecs.Cmp.dll for JPEG.