WebImage Class
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.
Represents an object that lets you display and manage images in a web page.
public class WebImage
type WebImage = class
Public Class WebImage
- Inheritance
-
WebImage
Constructors
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. |
Properties
FileName |
Gets or sets the file name of the WebImage object. |
Height |
Gets the height, in pixels, of the image. |
ImageFormat |
Gets the format of the image (for example, "jpeg" or "png"). |
Width |
Gets the width, in pixels, of the image. |
Methods
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) |
Adds a watermark image using the specified image object. |
AddTextWatermark(String, String, Int32, String, String, String, String, Int32, Int32) |
Adds watermark text to the image. |
Clone() |
Copies the WebImage object. |
Crop(Int32, Int32, Int32, Int32) |
Crops an image. |
FlipHorizontal() |
Flips an image horizontally. |
FlipVertical() |
Flips an image vertically. |
GetBytes(String) |
Returns the image as a byte array. |
GetImageFromRequest(String) |
Returns an image that has been uploaded using the browser. |
Resize(Int32, Int32, Boolean, Boolean) |
Resizes an image. |
RotateLeft() |
Rotates an image to the left. |
RotateRight() |
Rotates an image to the right. |
Save(String, String, Boolean) |
Saves the image using the specified file name. |
Write(String) |
Renders an image to the browser. |