PStreamImage assembly



Download : PStreamImage.zip

TStreamImage - System.Web.UI.WebControls.Image descendant witch have Memory Stream as a source for image. Create images on the fly and use them on your web page just as you are using plain old image control. Design time support for VS.NET and Delphi 8 for .NET

This control uses no temporary files in runtime, there are no need to change any web server options (like write permisions...). However it requires change in web application's web.config file. TStreamImage uses IHttpModule to intercept generated fake requests and returns image stream, therefore you must declare IHttpModule in web.config, If used in VS.NET or Delphi IDE's it will add needed web module registration in web.config automatically when placed on web form.

This control delivers some of promised Image generating Whidbey functionality today, see for your self :

ASP.NET 2.0 Image Generation features

TStreamImage class is ideal for reusing, and I am reusing it frequently, one such example is TDBImageColumn, image column for data grid (PDBImageColumn) This class uses TStreamImage to show images from database in ASP.NET DataGrid. Another example is TAbeLabel, label control that draws text dynamicaly and uses TStreamImage to render generated image, you can see TAbeLabel in action here : TAbeLabel demo

While TStreamImage is written in Delphi for .NET you can derive from it using any .NET languange, in PStreamImage.zip archive is example of such c# control that is deriving from TStreamImage and renders current server time on image.