VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml.Editor.Docx Namespace / DocxDocumentEditor Class / AddImageResource Methods / AddImageResource(VintasoftImage,EncoderBase) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
AddImageResource(VintasoftImage,EncoderBase) Method (DocxDocumentEditor)
In This Topic
Adds an image-resource to the worksheet.
Syntax
'Declaration

Public Overloads Function AddImageResource( _
ByVal image
An image to add.
As Vintasoft.Imaging.VintasoftImage, _
ByVal encoder
An encoder that should be used to encode an image.
As Vintasoft.Imaging.Codecs.Encoders.EncoderBase _
) As System.String

Parameters

image
An image to add.
encoder
An encoder that should be used to encode an image.

Return Value

A string with resource identifier if image is added to the worksheet; null if image is not added to the worksheet.
Exceptions
ExceptionDescription
Thrown if image or encoder is null.
Requirements

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

See Also