User-232511291 posted
well Bharath am not all verse with GDI+ but the problem looks possible but for the second question that you talked about i have already done the same
Okey
in this application i have used a <asp:pane /> inside the pane when ever i move my mouse you get the co-ordinates on the two text boxes below ,one being for the X co-ordinate and the second being for the Y co-ordinate
This i swhat i did at the aspx page
<html>
<head>
</head>
<body>
<form id="Form1" runat="server" method="post">
<input id="hidX" name="hidX" type="hidden">
<input id="hidY" name="hidY" type="hidden">
<asp:panel id="Panel1" runat="server" borderstyle="Solid" height="600" width="900" ></asp:panel>
<p>
X:
<input name="xPos" size="5" type="text"></p>
<p>
Y:
<input name="yPos" size="5" type="text"></p>
<asp:Label ID="Label1" runat="server"></asp:Label>
<script language="JavaScript">
function getPanelMouseCoOrds()
{
var mouseX = event.clientX + document.body.scrollLeft;
var mouseY = event.clientY + document.body.scrollTop;
document.Form1.xPos.value = mouseX;
document.Form1.yPos.value = mouseY;
document.Form1.hidX.value = mouseX;
document.Form1.hidY.value = mouseY;
return true;
}
function handlePanelClick()
{
document.Form1.submit();
}
</script>
</form>
</body>
</html>
not we goota add a small piece of code in the code file too
all of this goes in the page load
if (!Page.IsPostBack)
{
Panel1.Attributes["onmousemove"] = "getPanelMouseCoOrds()";
Panel1.Attributes["onclick"] = "handlePanelClick()";
}
else
{
int panelX = Int32.Parse(Request.Form["hidX"]);
int panelY = Int32.Parse(Request.Form["hidY"]);
Label1.Text = "YOU CLICKED X_CORD: " + panelX + ",Y_CORD: " + panelY;
}
HOpe this helps
ill try out with the first question as well will let know if i get any solutions to it