<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register Assembly="Neodynamic.WebControls.ImageDraw" Namespace="Neodynamic.WebControls.ImageDraw"
    TagPrefix="neoimg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ImageDraw ASP.NET Multipage TIFF Viewer</title>    
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align:center">
        <h1>ImageDraw ASP.NET Multipage TIFF Viewer</h1>
        <table cellpadding="5" class="container">
            <tr class="viewerHeader">
                <td valign="middle" >                     
                    <asp:ImageButton ID="prevButton" runat="server" 
                        ImageUrl="~/images/prev.gif" 
                        style="height: 22px" />
                    &nbsp;&nbsp;&nbsp;
                    <asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                    &nbsp;&nbsp;&nbsp;                                     
                    <asp:ImageButton ID="nextButton" runat="server"
                        ImageUrl="~/images/next.gif"  />                    
                </td>
                <td style="width: 25%; text-align:center" > 
                <asp:CheckBox ID="chkWatermark" runat="server" Text="Add Watermark" 
                        AutoPostBack="true"  />
                </td>
                <td style="width: 25%; text-align:right" > 
                    Zoom:&nbsp;<asp:DropDownList ID="ddlZoom" runat="server" AutoPostBack="True" >
                        <asp:ListItem Value="100">100%</asp:ListItem>
                        <asp:ListItem Value="75">75%</asp:ListItem>
                        <asp:ListItem Value="50">50%</asp:ListItem>
                    </asp:DropDownList>  
                </td>                
            </tr>
            <tr>
                <td colspan="3">
                    <div class="viewerContainer">
                        <neoimg:ImageDraw ID="ImageDraw1" runat="server" CacheExpiresAtDateTime="" 
                            Monochrome="False" RenderingMethod="HttpHandler" 
                            HttpHandlerName="ImageGenerator.axd" ImageFormat="Jpeg">
                            <Canvas Fill-BackgroundColor="255, 255, 255" Fill-ForegroundColor="0, 0, 0" 
                                Fill-GradientColor1="255, 255, 255" Fill-GradientColor2="0, 0, 0" Height="818" 
                                Width="557" CenterElements="True" />
                            <Elements>
                                <neoimg:ImageElement Height="1091" MultiPageIndex="0" Name="myTiff" 
                                    Source="File" SourceFile="~/images/patent.tif" UseSourceDpi="False" Width="743">                                    
                                </neoimg:ImageElement>                                
                            </Elements>
                        </neoimg:ImageDraw>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
