MarkdownImageSavingArgs

MarkdownImageSavingArgs class

Arguments passed to ImageSaving.

public sealed class MarkdownImageSavingArgs

Properties

Name Description
ImageFileName { get; set; } File name (or placeholder id) embedded as the image URI in the Markdown output. Assign to rewrite the URI.
ImageStream { get; set; } Destination stream the converter will write the image bytes into after this callback returns. Replace it with your own writable stream (e.g. a FileStream for disk persistence or a MemoryStream you intend to read afterwards).
KeepImageStreamOpen { get; set; } When false (default), the converter closes ImageStream after writing — idiomatic for FileStream replacements that should be flushed to disk. Set to true to keep the stream open after conversion completes (typical for a MemoryStream you intend to read yourself); the caller then owns disposal.

See Also