WebImage Class
Represents an object that lets you display and manage images in a web page.
Namespace:
System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
The WebImage type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | 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 | Adds watermark text to the image. |
![]() | Clone | Copies the WebImage object. |
![]() | Crop | Crops an image. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | FlipHorizontal | Flips an image horizontally. |
![]() | FlipVertical | Flips an image vertically. |
![]() | GetBytes | Returns the image as a byte array. |
![]() | GetHashCode | (Inherited from Object.) |
![]() ![]() | GetImageFromRequest | Returns an image that has been uploaded using the browser. |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Resize | Resizes an image. |
![]() | RotateLeft | Rotates an image to the left. |
![]() | RotateRight | Rotates an image to the right. |
![]() | Save | Saves the image using the specified file name. |
![]() | ToString | (Inherited from Object.) |
![]() | Write | Renders an image to the browser. |
