WebImage Constructors

Definition

Overloads

WebImage(Byte[])

Initializes a new instance of the WebImage class using a byte array to represent the image.

WebImage(Stream)

Initializes a new instance of the WebImage class using a stream to represent the image.

WebImage(String)

Initializes a new instance of the WebImage class using a path to represent the image location.

WebImage(Byte[])

Initializes a new instance of the WebImage class using a byte array to represent the image.

public WebImage (byte[] content);
new System.Web.Helpers.WebImage : byte[] -> System.Web.Helpers.WebImage
Public Sub New (content As Byte())

Parameters

content
Byte[]

The image.

Applies to

WebImage(Stream)

Initializes a new instance of the WebImage class using a stream to represent the image.

public WebImage (System.IO.Stream imageStream);
new System.Web.Helpers.WebImage : System.IO.Stream -> System.Web.Helpers.WebImage
Public Sub New (imageStream As Stream)

Parameters

imageStream
Stream

The image.

Applies to

WebImage(String)

Initializes a new instance of the WebImage class using a path to represent the image location.

public WebImage (string filePath);
new System.Web.Helpers.WebImage : string -> System.Web.Helpers.WebImage
Public Sub New (filePath As String)

Parameters

filePath
String

The path of the file that contains the image.

Applies to