-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefault.aspx
More file actions
57 lines (55 loc) · 3.51 KB
/
Default.aspx
File metadata and controls
57 lines (55 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="Color2Gray.Default" %>
<!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 runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<p><b>Source: </b><asp:FileUpload ID="sourceFU" runat="server" /></p>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel runat="server" ID="imageUP">
<Triggers>
<asp:PostBackTrigger ControlID="runBtn" />
<asp:PostBackTrigger ControlID="clearBtn" />
</Triggers>
<ContentTemplate>
<p>
<b>Task: </b>
<asp:DropDownList ID="taskDDL" runat="server" OnSelectedIndexChanged="showOptions" AutoPostBack="true">
<asp:ListItem Text="Grayscale (Averaging)" Value="grayscaleAverage"></asp:ListItem>
<asp:ListItem Text="Grayscale (BT.601)" Value="grayscaleBT601"></asp:ListItem>
<asp:ListItem Text="Grayscale (Desaturation)" Value="grayscaleDesaturation"></asp:ListItem>
<asp:ListItem Text="Grayscale via LAB" Value="grayscaleLab"></asp:ListItem>
<asp:ListItem Text="Color2Gray" Value="color2Gray"></asp:ListItem>
<asp:ListItem Text="Color2Gray+Color" Value="color2Color"></asp:ListItem>
<asp:ListItem Text="Color2Gray+Color+Correction" Value="color2CC"></asp:ListItem>
</asp:DropDownList>
</p>
<asp:Panel ID="C2GPanel" runat="server" Visible="false">
<p><b>Radius: </b><asp:TextBox ID="RadiusTB" TextMode="Number" runat="server" min="0" max="500" step="1" Text="10" /></p>
<p><b>Alpha: </b><asp:TextBox ID="AlphaTB" TextMode="Number" runat="server" min="0" max="50" step="1" Text="10" /></p>
<p><b>Theta: </b><asp:TextBox ID="ThetaTB" TextMode="Number" runat="server" min="0" max="359" step="1" Text="45" /></p>
<p><b>Iterations: </b><asp:TextBox ID="ItersTB" TextMode="Number" runat="server" min="0" max="50" step="1" Text="10" /></p>
<asp:Panel ID="CBPanel" runat="server" Visible="false">
<p>
<b>Blindness Correction: </b>
<asp:DropDownList ID="CBDDL" runat="server">
<asp:ListItem Text="Deuteranopia: green weakness" Value="1"></asp:ListItem>
<asp:ListItem Text="Protanopia: red weakness" Value="2"></asp:ListItem>
<asp:ListItem Text="Tritanopia: blue weakness" Value="3"></asp:ListItem>
</asp:DropDownList>
</p>
</asp:Panel>
</asp:Panel>
<asp:Button ID="runBtn" Text="Run!" OnClick="run" runat="server" />
<asp:Button ID="clearBtn" Text="Clear!" OnClick="clear" runat="server" />
<hr />
<asp:Label ID="debug" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>