WebImage 類別

定義

表示可讓您顯示和管理網頁中影像的物件。

public class WebImage
type WebImage = class
Public Class WebImage
繼承
WebImage

建構函式

WebImage(Byte[])

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

WebImage(Stream)

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

WebImage(String)

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

屬性

FileName

取得或設定 物件的 WebImage 檔案名。

Height

取得影像的高度 (像素)。

ImageFormat

取得影像的格式 (例如,"jpeg" 或 "png")。

Width

取得影像的寬度 (像素)。

方法

AddImageWatermark(String, Int32, Int32, String, String, Int32, Int32)

使用浮水印影像的路徑來新增浮水印影像。

AddImageWatermark(WebImage, Int32, Int32, String, String, Int32, Int32)

使用指定的影像物件,新增浮水印影像。

AddTextWatermark(String, String, Int32, String, String, String, String, Int32, Int32)

將浮水印文字新增至影像。

Clone()

複製 WebImage 物件。

Crop(Int32, Int32, Int32, Int32)

裁切影像。

FlipHorizontal()

水平地翻轉影像。

FlipVertical()

垂直地翻轉影像。

GetBytes(String)

以位元組陣列傳回影像。

GetImageFromRequest(String)

傳回已使用瀏覽器上傳的影像。

Resize(Int32, Int32, Boolean, Boolean)

調整影像的大小。

RotateLeft()

將影像旋轉至左側。

RotateRight()

將影像旋轉至右側。

Save(String, String, Boolean)

使用指定的檔案名稱儲存影像。

Write(String)

將影像轉譯至瀏覽器。

適用於