ASP.NET Training : Dynamic Image control

In this tutorial you will learn how to create Dynamic Image Control, DynamicImage Control Properties and Custom Parameters.

The DynamicImage control derives from the DynamicImageBase which is in turn derived from Image. This control acquires image bytes from varied sources and renders them to image capable devices using an internal normalization process. It stores the images in the System.Drawing.Image object and is cached in ASP.NET Cache with a randomly generated key. The HTML generates a < img > tag. The CachedImageService.axd URL is a built in HTTP handler which retrieves the image from the cache object and serializes its bytes to the browser using the proper content type. The data parameter of the Query handler string is used to select the image. The ImageUrl property can be used to find the URL of the image. The DynamicImage has the following properties.

ID - ID of the server control

ImageGeneratorURL- The URL of our ImageGenerator .asix file which will build our image on the fly

ImageType - Automatic, Jpg, Gif, Bmp, Png

Height - Height of the image

Width- Width of the image

ParameterMode - ImageGenerationStorage (more secure) or QueryString

ForeColor - The font color of the text

BackColor - The back ground color of the image (only displays if a background image isn't supplied)

Image –an object of the System.Drawing.Image. It gets and sets the property of the image.***

Read More...

http://www.exforsys.com/content/view/1659/354/