Class ImageTool
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Tool to detect image formats and convert from binary data to base64 strings.
public sealed class ImageTool : IDisposable
- Inheritance
-
ImageTool
- Implements
- Inherited Members
Constructors
- ImageTool(Stream)
Creates a new image tool from given stream.
Properties
- SourceStream
Gets the stream this tool is operating on.
Methods
- Base64FromStream(Optional<Stream?>)
Utility function to convert an optional image stream into an optional base 64 string.
- Base64FromStream(Stream)
Utility function to convert an image stream into a base 64 string.
- Dispose()
Disposes this image tool.
- GetBase64()
Converts this image into base64 data format string.
- GetFormat()
Detects the format of this image.