How to use

To use thumb control you need to register httphandler in web.config.

<add path="Thumb.axd" verb="*" type="Manic.Controls.ThumbHandler" validate="false" />



Properties
  • ImageUrl
  • ImageWidth
  • ImageHeight
  • ImageQuality
  • ImageBackgroundColor
  • CornerType
  • CornerRadius
  • TopLeftCornerType
  • TopRightCornerType
  • BottomRightCorner Type
  • BottomLeftCornerType
  • TopLeftCornerRadius
  • TopRightCornerRadius
  • BottomRightCornerRadius
  • BottomLeftCornerRadius
  • ImageBorder
  • ImageBorderWidth
  • ImageBorderColor
  • ImageFilter
  • WatermarkUrl
  • CopyrightText

Security

ImageUrl and WatermarkImageUrl is encrypted so user can not see your original image location. To add extra security add following key in appSettings section of web.config:

<add key="ManicEncryptionKey" value="YOURKEY" />

Encryption key value must have 8 characters.

Adding watermark to thumb

If you want to show good watermark please make your watermark image as transparent png. You can see example here:
http://services.4ants.ba/controls/samples/images/watermark-1.png
http://services.4ants.ba/controls/samples/images/watermark-2.png

Adding copyright to page

To add copyright on thumb enter text in CopyrightText property of the control.

<manic:Thumb ID="tmb1" runat="server" ImageUrl="IMAGEPATH" AlternateText="Sample" CopyrightText="© Manic Studio" />

Examples

You can see a working examples here:
http://services.4ants.ba/controls/samples/thumbs/

Last edited Feb 8, 2010 at 4:14 PM by ManicStudio, version 15

Comments

No comments yet.