[]
        
(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)
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)
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)
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)
Parameters
Type Name Description
Image image

The image to set.