Table of Contents

Constructor MailInlineImage

Namespace
MailFathom.Application.EmailContent.Rendering.Document
Assembly
MailFathom.Application.dll

MailInlineImage(string, string?, int?, int?)

One picture a message displays, and everything a pane needs to draw it.

public MailInlineImage(string Source, string? AlternativeText, int? Width, int? Height)

Parameters

Source string

Where the picture is, which is a data: URI for a part of the message itself and an absolute http or https address only where the reader asked for remote content.

AlternativeText string

What the message said the picture shows, or null where it said nothing.

Width int?

The width the message asked for in pixels, or null where it asked for none.

Height int?

The height the message asked for in pixels, or null where it asked for none.

Remarks

An inline part is inlined rather than linked, so drawing it needs no second request and no interception API — which matters because a browser-hosted client may have none to offer. A part too large for the bound is not inlined at all and the picture is reported as one the message carries but the pane does not draw, rather than as a reference to fetch.

A retained address is carried as the message wrote it, so a message writing http is drawn over cleartext. That is a consequence of the consent rather than a gap in it: a reader who asked for this message's remote content asked for the fetch, and refusing the ones written without transport security would leave them a picture short with nothing said about why. What the interface has to say plainly is what the fetch discloses, which is the reader's network address and the fact that the message was opened — and over http, to anybody on the path as well as to whoever wrote it.

The two dimensions are the sender's request and not a promise. A pane fits a picture to the width it has and uses them for the shape rather than for the size, which is why nothing here can be sized against a viewport.