Package com.flir.thermalsdk.meterlink
Class MeterlinkImageProcessor
java.lang.Object
com.flir.thermalsdk.meterlink.MeterlinkImageProcessor
Helper for processing Meterlink JPEG image.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Wrapper for holding processing result. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessImageData
(byte[] imageData, String outputDirectory) Saves the given byte array representing an image into a file at the given path.processImageData
(byte[] imageData, String outputDirectory, String outputFileName) Saves the given byte array representing an image into a file at the given path and with a given name.
-
Constructor Details
-
MeterlinkImageProcessor
public MeterlinkImageProcessor()
-
-
Method Details
-
processImageData
public MeterlinkImageProcessor.ProcessingResult processImageData(byte[] imageData, String outputDirectory) Saves the given byte array representing an image into a file at the given path.- Parameters:
imageData
- image data to saveoutputDirectory
- output directory to store the file- Returns:
- Returns a
MeterlinkImageProcessor.ProcessingResult
instance with the result
-
processImageData
public MeterlinkImageProcessor.ProcessingResult processImageData(byte[] imageData, String outputDirectory, String outputFileName) Saves the given byte array representing an image into a file at the given path and with a given name.- Parameters:
imageData
- image data to saveoutputDirectory
- output directory to store the fileoutputFileName
- name of the output file- Returns:
- Returns a
MeterlinkImageProcessor.ProcessingResult
instance with the result - Throws:
IllegalArgumentException
- for invalid arguments eg missing "outputDirectory"
-