Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Content.Markdown.Wpf.Multimedia.ImageContent Class Reference

Image content. More...

Inheritance diagram for Waher.Content.Markdown.Wpf.Multimedia.ImageContent:
Waher.Content.Markdown.Model.Multimedia.ImageContent Waher.Content.Markdown.Wpf.IMultimediaWpfXamlRenderer Waher.Content.Markdown.Model.MultimediaContent Waher.Content.Markdown.Rendering.IMultimediaRenderer Waher.Content.Markdown.Model.IMultimediaContent Waher.Content.Markdown.Model.IMultimediaContent

Public Member Functions

 ImageContent ()
 Image content. More...
 
Task RenderWpfXaml (WpfXamlRenderer Renderer, MultimediaItem[] Items, IEnumerable< MarkdownElement > ChildNodes, bool AloneInParagraph, MarkdownDocument Document)
 Generates WPF XAML for the markdown element. More...
 
override Grade Supports (MultimediaItem Item)
 Checks how well the handler supports multimedia content of a given type. More...
 
override bool EmbedInlineLink (string Url)
 If the link provided should be embedded in a multi-media construct automatically. More...
 

Static Public Member Functions

static async Task OutputWpf (XmlWriter Output, IImageSource Source, string Title)
 Outputs an image to WPF XAML More...
 
static async Task< IImageSourceCheckDataUri (IImageSource Source)
 Checks a Data URI image, that it contains a decodable image. More...
 
static Task< string > GetTemporaryFile (byte[] BinaryImage)
 Stores an image in binary form as a temporary file. Files will be deleted when application closes. More...
 
static async Task< string > GetTemporaryFile (byte[] BinaryImage, string FileExtension)
 Stores an image in binary form as a temporary file. Files will be deleted when application closes. More...
 

Detailed Description

Image content.

Definition at line 12 of file ImageContent.cs.

Constructor & Destructor Documentation

◆ ImageContent()

Waher.Content.Markdown.Wpf.Multimedia.ImageContent.ImageContent ( )

Image content.

Definition at line 17 of file ImageContent.cs.

Member Function Documentation

◆ CheckDataUri()

static async Task< IImageSource > Waher.Content.Markdown.Model.Multimedia.ImageContent.CheckDataUri ( IImageSource  Source)
staticinherited

Checks a Data URI image, that it contains a decodable image.

Parameters
SourceImage source.

Definition at line 54 of file ImageContent.cs.

◆ EmbedInlineLink()

override bool Waher.Content.Markdown.Model.Multimedia.ImageContent.EmbedInlineLink ( string  Url)
virtualinherited

If the link provided should be embedded in a multi-media construct automatically.

Parameters
UrlInline link.

Implements Waher.Content.Markdown.Model.MultimediaContent.

Definition at line 42 of file ImageContent.cs.

◆ GetTemporaryFile() [1/2]

static Task< string > Waher.Content.Markdown.Model.Multimedia.ImageContent.GetTemporaryFile ( byte[]  BinaryImage)
staticinherited

Stores an image in binary form as a temporary file. Files will be deleted when application closes.

Parameters
BinaryImageBinary image.
Returns
Temporary file name.

Definition at line 88 of file ImageContent.cs.

◆ GetTemporaryFile() [2/2]

static async Task< string > Waher.Content.Markdown.Model.Multimedia.ImageContent.GetTemporaryFile ( byte[]  BinaryImage,
string  FileExtension 
)
staticinherited

Stores an image in binary form as a temporary file. Files will be deleted when application closes.

Parameters
BinaryImageBinary image.
FileExtensionFile extension.
Returns
Temporary file name.

Definition at line 99 of file ImageContent.cs.

◆ OutputWpf()

static async Task Waher.Content.Markdown.Wpf.Multimedia.ImageContent.OutputWpf ( XmlWriter  Output,
IImageSource  Source,
string  Title 
)
static

Outputs an image to WPF XAML

Parameters
OutputWPF XAML output.
SourceImage source.
TitleTitle of image.

Definition at line 51 of file ImageContent.cs.

◆ RenderWpfXaml()

Task Waher.Content.Markdown.Wpf.Multimedia.ImageContent.RenderWpfXaml ( WpfXamlRenderer  Renderer,
MultimediaItem[]  Items,
IEnumerable< MarkdownElement ChildNodes,
bool  AloneInParagraph,
MarkdownDocument  Document 
)

Generates WPF XAML for the markdown element.

Parameters
RendererRenderer
ItemsMultimedia items.
ChildNodesChild nodes.
AloneInParagraphIf the element is alone in a paragraph.
DocumentMarkdown document containing element.

Implements Waher.Content.Markdown.Wpf.IMultimediaWpfXamlRenderer.

Definition at line 29 of file ImageContent.cs.

◆ Supports()

override Grade Waher.Content.Markdown.Model.Multimedia.ImageContent.Supports ( MultimediaItem  Item)
virtualinherited

Checks how well the handler supports multimedia content of a given type.

Parameters
ItemMultimedia item.
Returns
How well the handler supports the content.

Implements Waher.Content.Markdown.Model.MultimediaContent.

Definition at line 30 of file ImageContent.cs.


The documentation for this class was generated from the following file: