ASP.NET
Dynamic images generator, HTTP handler
-
Simple image browser
- shows all images located in the App_Data folder and all subfolders
- images from each folder are presented in a separate row of the table
- for each folder there is a header containing folder's name in the table (see exemplary implementation)
- Dynamic image generation
- the default page contains the table with images' thumbnails
- thumbnails have size 128x128 and are dynamically generated with HTTP handler from
original images (using temporary files is forbidden)
- each thumbnail is a link to the image in its original size
- an image in its original size has a "watermark" (text: "Copyright", font: Arial, size 48, bold)
- the "watermark" is positioned at image's diagonal and is printed with white brush, 50% opacity
- images with "watermarks" are dynamically generated by the HTTP handler from
original images (using temporary files is forbidden)
- Test images structure: task04_App_Data.zip
- Hints:
- Repeater class (control), Repeater.ItemDataBound event, RepeaterItem.DataItem property
- Control.FindControl()
- HttpServerUtility.MapPath()
- DirectoryInfo class, FileInfo class
- Graphics.FromImage(), GraphicsPath.AddString(), Font, Matrix, Brush, ...
- Approximate points:
- default page [3.5]
- HTTP handler [2.0]
- thumbnails generation [1.5]
- watermark generation [3.0]