Line 51: Image.GetThumbnailImageAbort myCallback = new Image.GetThumbnailImageAbort(ThumbnailCallback);
Line 52: //creat BitMap object from image path passed in querystring
Line 53: Bitmap myBitmap = new Bitmap(context.Server.MapPath(imgPath));
Line 54: //create unit object for height and width. This is to convert parameter passed in differen unit like pixel, inch into generic unit.
Line 55: System.Web.UI.WebControls.Unit widthUnit = System.Web.UI.WebControls.Unit.Parse(imgwidth);
|