HomeCommunityControl GalleryGraphics & MultimediaImagingBetterImage

BetterImage



Submit a Review

166 Downloads

2,423 Views


Description

The BetterImage control is a web control that communicates with a HttpHandler to render resized and transformed images on the fly.

The NEW BetterImage is almost completely rewritten from http://www.waterwijkers.nl/bip. The code is greatly enhanced and now fully extensible. You can inject your own:

  • Image Transformations
    This allows for custom transformation that are applied on the fly.
  • Output Cache Providers
    This allows for custom output caching of resized / transformed images and their metadata.
  • Image Retrievers
    This allows for custom storage locations for your images. You can store them in a SQL Server Database, SharePoint or a compeltely different web site for example. A DBImageRetriever and SPImageRetriever are included as samples.

Syntax Example

<code><pre>&lt;wmb:BetterImage runat="server" ImageUrl="~/imgs/Sample.jpg" AlternateText="Resized and protected image. Copyright text is added on the fly, src of the image ecrypted and right mousebutton and deeplinking is disabled." ToolTip="Resized and protected image. Copyright text is added on the fly, src of the image ecrypted and right mousebutton and deeplinking is disabled."> &lt;ImageSettings MaxWidth="150" MaxHeight="150" DisableRightClick="true" EncryptSrc="true" Copyright="Copyright to protect images" /> &lt;/wmb:BetterImage> &lt;wmb:BetterImage runat="server" ImageUrl="~/imgs/Sample.jpg" AlternateText="Grayscaled" ToolTip="Grayscaled"> &lt;ImageSettings MaxWidth="150" MaxHeight="150" Grayscale="true" /> &lt;/wmb:BetterImage> &lt;wmb:BetterImage runat="server" ImageUrl="~/imgs/Sample.jpg" AlternateText="Sepia" ToolTip="Sepia"> &lt;ImageSettings MaxWidth="150" MaxHeight="150" Sepia="true" /> &lt;/wmb:BetterImage> &lt;wmb:BetterImage runat="server" ImageUrl="~/imgs/Sample.jpg" AlternateText="Negative" ToolTip="Negative"> &lt;ImageSettings MaxWidth="150" MaxHeight="150" Negative="true" /> &lt;/wmb:BetterImage>pre></code>

Screenshots

Reviews

Submit a review