Export (0) Print
Expand All
4 out of 7 rated this helpful - Rate this topic

WebImage Class

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

System.Object
  System.Web.Helpers.WebImage

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)
public class WebImage

The WebImage type exposes the following members.

  NameDescription
Public methodWebImage(Byte[])Initializes a new instance of the WebImage class using a byte array to represent the image.
Public methodWebImage(Stream)Initializes a new instance of the WebImage class using a stream to represent the image.
Public methodWebImage(String)Initializes a new instance of the WebImage class using a path to represent the image location.
Top
  NameDescription
Public propertyFileNameGets or sets the file name of the WebImage object.
Public propertyHeightGets the height, in pixels, of the image.
Public propertyImageFormatGets the format of the image (for example, "jpeg" or "png").
Public propertyWidthGets the width, in pixels, of the image.
Top
  NameDescription
Public methodAddImageWatermark(String, Int32, Int32, String, String, Int32, Int32)Adds a watermark image using a path to the watermark image.
Public methodAddImageWatermark(WebImage, Int32, Int32, String, String, Int32, Int32)Adds a watermark image using the specified image object.
Public methodAddTextWatermarkAdds watermark text to the image.
Public methodCloneCopies the WebImage object.
Public methodCropCrops an image.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFlipHorizontalFlips an image horizontally.
Public methodFlipVerticalFlips an image vertically.
Public methodGetBytesReturns the image as a byte array.
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetImageFromRequestReturns an image that has been uploaded using the browser.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodResizeResizes an image.
Public methodRotateLeftRotates an image to the left.
Public methodRotateRightRotates an image to the right.
Public methodSaveSaves the image using the specified file name.
Public methodToString (Inherited from Object.)
Public methodWriteRenders an image to the browser.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.