WebImage WebImage WebImage Class

Definition

Represents an object that lets you display and manage images in a web page.

public class WebImage
type WebImage = class
Public Class WebImage
Inheritance
WebImageWebImageWebImage

Constructors

WebImage(Byte[]) WebImage(Byte[]) WebImage(Byte[])

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

WebImage(Stream) WebImage(Stream) WebImage(Stream)

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

WebImage(String) WebImage(String) WebImage(String)

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

Properties

FileName FileName FileName

Gets or sets the file name of the WebImage object.

Height Height Height

Gets the height, in pixels, of the image.

ImageFormat ImageFormat ImageFormat

Gets the format of the image (for example, "jpeg" or "png").

Width Width Width

Gets the width, in pixels, of the image.

Methods

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

Adds a watermark image using a path to the watermark image.

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

Adds a watermark image using the specified image object.

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

Adds watermark text to the image.

Clone() Clone() Clone()

Copies the WebImage object.

Crop(Int32, Int32, Int32, Int32) Crop(Int32, Int32, Int32, Int32) Crop(Int32, Int32, Int32, Int32)

Crops an image.

FlipHorizontal() FlipHorizontal() FlipHorizontal()

Flips an image horizontally.

FlipVertical() FlipVertical() FlipVertical()

Flips an image vertically.

GetBytes(String) GetBytes(String) GetBytes(String)

Returns the image as a byte array.

GetImageFromRequest(String) GetImageFromRequest(String) GetImageFromRequest(String)

Returns an image that has been uploaded using the browser.

Resize(Int32, Int32, Boolean, Boolean) Resize(Int32, Int32, Boolean, Boolean) Resize(Int32, Int32, Boolean, Boolean)

Resizes an image.

RotateLeft() RotateLeft() RotateLeft()

Rotates an image to the left.

RotateRight() RotateRight() RotateRight()

Rotates an image to the right.

Save(String, String, Boolean) Save(String, String, Boolean) Save(String, String, Boolean)

Saves the image using the specified file name.

Write(String) Write(String) Write(String)

Renders an image to the browser.

Applies to