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)

将图像呈现到浏览器。

适用于