Class ImageParser
Functions for parsing embedded thumbnail images
Inherited Members
Namespace: DuetControlServer.Files.ImageProcessing
Assembly: DuetControlServer.dll
Syntax
public static class ImageParser
Methods
ProcessAsync(Stream, CodeParserBuffer, GCodeFileInfo, Code, bool, ThumbnailInfoFormat)
Extract thumbnails images from a file
Declaration
public static ValueTask ProcessAsync(Stream stream, CodeParserBuffer codeParserBuffer, GCodeFileInfo parsedFileInfo, Code code, bool readThumbnailContent, ThumbnailInfoFormat format)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Stream to read from |
CodeParserBuffer | codeParserBuffer | Parser buffer |
GCodeFileInfo | parsedFileInfo | File information |
Code | code | Code to reuse while parsing |
bool | readThumbnailContent | Whether thumbnail content shall be returned |
ThumbnailInfoFormat | format | Thumbnail format |
Returns
Type | Description |
---|---|
ValueTask | Asynchronous task |