Skip to main content
A newer version of this page is available.
.NET Framework 4.5.2+

DocumentImageSource.FromImage(Image) Method

Creates an image source object from the specified image.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

[ComVisible(false)]
public static DocumentImageSource FromImage(
    Image image
)

Parameters

Name Type Description
image Image

An Image object.

Returns

Type Description
DocumentImageSource

A DocumentImageSource object representing the image in the document.

Remarks

The following code sample demonstrates how the FromImage method can be used to insert an image at the cursor position in the document.

See Also