06-05-19 01:23 PM
06-05-19 08:31 PM
If you have a region defined, you can use a read stage with "Read Image" to save it to an image type Data Item. From there, you'll need a custom code stage to save the image.
Namespace Imports:
System.Drawing.Imaging
Inputs:
Image - Image
Path - Text
Image Format - Text
Outputs:
Success - Flag
Message - Text
Success = True
Try Dim Format As ImageFormat
Select Case Image_Format.ToUpper
Case "BMP":
Format = ImageFormat.Bmp
Case "GIF":
Format = ImageFormat.Gif
Case "JPG":
Format = ImageFormat.Jpeg
Case "JPEG":
Format = ImageFormat.Jpeg
Case "PNG":
Format = ImageFormat.Png
Case "TIF":
Format = ImageFormat.Tiff
Case "TIFF":
Format = ImageFormat.Tiff
Case Else:
Throw New Exception("Image format not recognized")
End Select
Image.Save(Path, Format) Catch e As Exception
Success = False
Message = e.Message
End Try