![]() The code-behind also sets up the JavaScript to change src attribute of the large image as well as the attributes needed for any TIF rotation or zoom of the big image. This pager size is configurable in the code-behind. There's also an optional STARTPAGE that can be passed to the query string, which indicates which page to start at (for paging). I've also set up a paging mechanism so that large files load quicker and take less system resources to iterate. This page has only one required parameter, which is FILE in the query string. An ASP page to display the image ( ViewImg.aspx in the download).A TIF class used to pull pages out of the TIF file.An ASP page to call that takes the file path parameter and does the work of configuring thumbnails and big image ( Default.aspx in the download).Clicking each page will use some JavaScript to update the src of the large image. The web page will display thumbnails on one side and an enlarged image on the other. This article gives you a basis and code example on how to create a multipage TIF Viewer using ASP.NET. I'm hoping to save someone some time and money. I look many places before I start building an app (why reinvent the wheel) and haven't found one that does exactly this. It's time for me to give back to the community out there. Save yourself some time and money and start here. NET already using (unless you need to be able to support JPEG compressed TIF files, which GDI doesn't support). There are many 3 rd party TIF Viewers out there, but why pay when this is built into.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |