[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.EmbeddedImageData.SetImage

SetImage Method

SetImage(Uri, string)

Sets the image that is displayed by the picture.

Declaration
public virtual void SetImage(Uri uri, string contentType)
Public Overridable Sub SetImage(uri As Uri, contentType As String)
Parameters
Type Name Description
Uri uri

The URI to the image file.

string contentType

The content type of the image data.

SetImage(Stream, string)

Sets the image that is displayed by the picture.

Declaration
public void SetImage(Stream stream, string contentType)
Public Sub SetImage(stream As Stream, contentType As String)
Parameters
Type Name Description
Stream stream

The stream that contains the image.

string contentType

The content type of the image data.

SetImage(byte[], string)

Sets the image that is displayed by the picture.

Declaration
public virtual void SetImage(byte[] bytes, string contentType)
Public Overridable Sub SetImage(bytes As Byte(), contentType As String)
Parameters
Type Name Description
byte[] bytes

The byte array of the image.

string contentType

The content type of the image data.

SetImage(Image)

Sets the image that is displayed by the picture.

Declaration
public void SetImage(Image image)
Public Sub SetImage(image As Image)
Parameters
Type Name Description
Image image

The image to set.