WebImage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[])
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.