Table of Contents

Class InlineMediaTool

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

Tool to detect image formats and convert from binary data to base64 strings.

public sealed class InlineMediaTool
Inheritance
object
InlineMediaTool

Constructors

InlineMediaTool(Stream)

Creates a new media tool from given stream.

Properties

SourceStream

Gets the stream this tool is operating on.

Methods

Dispose()

Disposes this media tool.

GetBase64()

Converts this image into base64 data format string.

GetFormat()

Detects the format of this media item.