VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml.Editor.Docx Namespace / DocxDocumentEditor Class / AddImageResource Methods / AddImageResource(OpenXmlDocumentElement,VintasoftImage,EncoderBase,IActionProgressController) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    AddImageResource(OpenXmlDocumentElement,VintasoftImage,EncoderBase,IActionProgressController) Method (DocxDocumentEditor)
    In This Topic
    Adds an image-resource to the root of specified element.
    Syntax

    Parameters

    element
    The element, where image must be added.
    image
    An image to add.
    encoder
    An encoder that should be used to encode an image.
    progressController
    The progress controller.

    Return Value

    A string with resource identifier if image is added successfully; otherwise, null.
    Exceptions
    ExceptionDescription
    Thrown if image or encoder is null.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also