First we set up the path to our image and then call our
MakeThumbnail function to create a thumbnail for it. We're not
detailing here how the MakeThumbnail function works but it would
probably call a component such as ImageGlue to shrink the image
down to appropriate dimensions before returning a JPEG image
formatted as an array of bytes. This array of bytes is assigned to
the variable 'theThumb'.
thePath = Server.MapPath("images/boat.jpg")
theThumb = MakeThumbnail(thePath)
|