473,480 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is it possible to display simple point and draw graphics on an ASP.NET page?

Hi, I would like to convert a VB.NET application from being a Windows
app to an ASP.NET app. I'm new to web development, so this may be a
simple question. Is it possible to render simple drawing commands in
an ASP.NET application? Something line draw a line point to point, or
draw a circle at this point. If so, can somebody point me toward the
library or technique to use? I can figure it out if I can get pointed
in the right direction.

I've not been able to find anything on the web about this, so I think
I'm either not thinking about it in the right context or its just not
done within the confines of an ASP.NET app.

Thanks,
John
Nov 18 '05 #1
3 1662
Specific questions about drawing would likely be best answered in this
newsgroup:
microsoft.public.dontnet.framework.drawing

ASP.NET will just see your output as another image. You point to your
output with a standard HTML image tag.
<image url='MyImage.jpg'>
or
<image url='MyImageGeneratorPage.aspx'>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jheitmuller" <jo**@jrcc.net> wrote in message
news:de**************************@posting.google.c om...
Hi, I would like to convert a VB.NET application from being a Windows
app to an ASP.NET app. I'm new to web development, so this may be a
simple question. Is it possible to render simple drawing commands in
an ASP.NET application? Something line draw a line point to point, or
draw a circle at this point. If so, can somebody point me toward the
library or technique to use? I can figure it out if I can get pointed
in the right direction.

I've not been able to find anything on the web about this, so I think
I'm either not thinking about it in the right context or its just not
done within the confines of an ASP.NET app.

Thanks,
John

Nov 18 '05 #2
You draw in ASP.Net the same way you draw in a Windows application. Use the
System.Drawing namespace.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jheitmuller" <jo**@jrcc.net> wrote in message
news:de**************************@posting.google.c om...
Hi, I would like to convert a VB.NET application from being a Windows
app to an ASP.NET app. I'm new to web development, so this may be a
simple question. Is it possible to render simple drawing commands in
an ASP.NET application? Something line draw a line point to point, or
draw a circle at this point. If so, can somebody point me toward the
library or technique to use? I can figure it out if I can get pointed
in the right direction.

I've not been able to find anything on the web about this, so I think
I'm either not thinking about it in the right context or its just not
done within the confines of an ASP.NET app.

Thanks,
John

Nov 18 '05 #3
His question might be related to who the image data gets streamed to the
browser and rendered.

I have never done this but here are some stuff that may get you going in the
write direction.

Remember, images rendered on the browser use the <img> tag. <img> tags
point to resources on the host server. A common tactic is to set the source
for the image to some ASPX page. Then, when the resource is requested, the
ASPX page dynamically generates some image formatted data, such as JPG or
GIF. You would then set the ContentType property on the HttpResponse object
so that browser know that it is in fact image data that it is retrieving.

This article might help. Although they are loading the file from disk, the
same principle applies when you create an image dynamically.
http://authors.aspalliance.com/steve...splayimage.asp
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uE**************@TK2MSFTNGP09.phx.gbl...
You draw in ASP.Net the same way you draw in a Windows application. Use the System.Drawing namespace.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jheitmuller" <jo**@jrcc.net> wrote in message
news:de**************************@posting.google.c om...
Hi, I would like to convert a VB.NET application from being a Windows
app to an ASP.NET app. I'm new to web development, so this may be a
simple question. Is it possible to render simple drawing commands in
an ASP.NET application? Something line draw a line point to point, or
draw a circle at this point. If so, can somebody point me toward the
library or technique to use? I can figure it out if I can get pointed
in the right direction.

I've not been able to find anything on the web about this, so I think
I'm either not thinking about it in the right context or its just not
done within the confines of an ASP.NET app.

Thanks,
John


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2419
by: DraguVaso | last post by:
Hi, In the override of the Paint-method of a DataGridTextBoxColumn I want to show an image with BitBlt, to see what I can gain there on performance. The problem is: It doesn't show me the image...
24
8127
by: trint | last post by:
add them into one PrintDocument: PrintDocument pd1 = new PrintDocument(); PrintDocument pd2 = new PrintDocument(); PrintDocument pdCombined = new PrintDocument(); pdCombined = pd1 + pd2;...
2
19809
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
6
3222
by: Chris Dunaway | last post by:
The method for printing documents in .Net can be confusing, especially for newer users. I would like to create a way to simplify this process. My idea would be implemented using a PrintDocument...
7
1717
by: Delme Greening | last post by:
I have an empty project with a button on a form. What code do I need to put behind the button to draw a rectangle on my form when it is clicked?
9
4009
by: zhaow | last post by:
Hi, All Greetings! I want to develop as appllication that requires a line-drawing function in the blank area between two forms. I have looked up the MSDN, it says that a graphics object need a...
12
3328
by: active | last post by:
I've been looking on the Internet for a way to convert a DIB to a Bitmap without success. Now I'm wondering if that is the approach I should be taking. All I want to do is display the DIB or...
11
7586
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type...
1
1855
by: OzzyB | last post by:
from graphics import * import math def drawCircle(win, centre, radius, colour): circle = Circle(centre, radius) circle.setFill(colour) circle.setWidth(2) circle.draw(win) ...
0
7048
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7050
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6743
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4787
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2999
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.