Embeds an image attachment with a mime-type compatible with its internal representation.
Namespace:
Gallio.Common.Markup
Assembly:
Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function EmbedImage ( _
attachmentName As String, _
image As Image _
) As BinaryAttachment |
Parameters
- attachmentName
- Type: System..::.String
The name of the attachment to create or null to
automatically assign one. The attachment name must be unique within the document.
- image
- Type: System.Drawing..::.Image
The image to attach.
Return Value
The attachment.
Exceptions
| Exception | Condition |
|---|
| System..::.ArgumentNullException | Thrown if image is null. |
| System..::.InvalidOperationException | Thrown if there is already an attachment
with the same name. |
See Also