WebImage 建構函式

定義

多載

WebImage(Byte[])

使用位元組陣列來表示影像, WebImage 初始化 類別的新實例。

WebImage(Stream)

使用資料流程來表示影像, WebImage 初始化 類別的新實例。

WebImage(String)

使用代表影像位置的路徑,初始化 類別的新實例 WebImage

WebImage(Byte[])

使用位元組陣列來表示影像, WebImage 初始化 類別的新實例。

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

參數

content
Byte[]

映像。

適用於

WebImage(Stream)

使用資料流程來表示影像, WebImage 初始化 類別的新實例。

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

參數

imageStream
Stream

映像。

適用於

WebImage(String)

使用代表影像位置的路徑,初始化 類別的新實例 WebImage

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

參數

filePath
String

包含影像的檔案路徑。

適用於