WebImage Class
Represents an object that lets you display and manage images in a web page.
Inheritance Hierarchy
System.Object
System.Web.Helpers.WebImage
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Class WebImage
'Usage
Dim instance As WebImage
public class WebImage
public ref class WebImage
type WebImage = class end
public class WebImage
The WebImage type exposes the following members.
Constructors
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. |
Top
Properties
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. |
Top
Methods
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. |
Top
Remarks
This class represents a helper, which is a component that simplifies web programming in ASP.NET Web Pages. You can use the WebImage class to display and manage images in a web page.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.