473,609 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

drawing graphs without using bitmaps


I am trying to draw a chart similar to GANTT chart in
asp.net.

Right now, I am drawing the rectangles on bitmap...but I dont
want to use bitmap

. Coz loading bitmap takes time...Is there any other way to draw
graphics / charts / rectangles without using bitmap or any other image
as a background ?

Thanks....
....
Pradnya

Apr 4 '06 #1
3 2429
Pradnya,

You could try doing something with tables that are sized and positioned
a certain way, but quite honestly, it's not really feasible.

You might want to try SVG, scalable vector graphics, but I think you
have to have a plugin for rendering those graphics.

The bitmap is really your best bet which will reach the most amount of
people.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

<pr************ @gmail.com> wrote in message
news:11******** **************@ t31g2000cwb.goo glegroups.com.. .

I am trying to draw a chart similar to GANTT chart in
asp.net.

Right now, I am drawing the rectangles on bitmap...but I dont
want to use bitmap

. Coz loading bitmap takes time...Is there any other way to draw
graphics / charts / rectangles without using bitmap or any other image
as a background ?

Thanks....
....
Pradnya

Apr 4 '06 #2

pr************@ gmail.com wrote:
I am trying to draw a chart similar to GANTT chart in
asp.net.

Right now, I am drawing the rectangles on bitmap...but I dont
want to use bitmap

. Coz loading bitmap takes time...Is there any other way to draw
graphics / charts / rectangles without using bitmap or any other image
as a background ?


So I'm guessing you're creating these bitmaps on the server, saving
them, then incorporating them in <img> tags you send to the browser?
(If this isn't what you're doing then please ignore this post :)

If you're doing this with .BMP files, then yes they are going to be
slow. However, just because you're working with Bitmap objects, doesn't
mean you have to save them as .BMP files. You can save them as .GIF
files, which are compressed (in a way that's good for charts) and which
will therefore be delivered much more quickly over the wire.

--
Larry Lard
Replies to group please

Apr 4 '06 #3
why don't you use a third party component to spit the chart out? there are
lots of free packages out there

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

<pr************ @gmail.com> wrote in message
news:11******** **************@ t31g2000cwb.goo glegroups.com.. .

I am trying to draw a chart similar to GANTT chart in
asp.net.

Right now, I am drawing the rectangles on bitmap...but I dont
want to use bitmap

. Coz loading bitmap takes time...Is there any other way to draw
graphics / charts / rectangles without using bitmap or any other image
as a background ?

Thanks....
....
Pradnya

Apr 5 '06 #4

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

Similar topics

6
11914
by: TheDD | last post by:
Hi all, i have a question: is there any librairy for drawing graphs with PHP? Not graphs like histogram or alike, but like a set of shapes linked together in a certain way (like a flow chart or call graph). I have found a script to handle the graph in memory but i can already do that, my problem is to draw it (it an optimal way, and without crossing
0
590
by: Ray Mitchell | last post by:
Hello, I need to write an application that displays multiple graphs on multiple tabbed sheets in a single window. The graphs are all simple X-Y line graphs like you'd see on an oscilloscope, but with labeled coordinates. I need everything (including the fonts if possible) to scale as I resize the window. I'm debating about using MFC or C# but I'd like to use C#. (I assume, however, that .NET will not work on Windows NT.) Is there...
4
3087
by: Christina Androne | last post by:
Hi I want to allow the user to drow some locators on an image and connect the locators with lines. So I tried to put the following code in the onmousedown enevt of the picture: Graphics LGraphics = Graphics.FromImage(imgMap.Image); LGraphics.DrawString("X", new Font("Arial", 12), SystemBrushes.WindowText, AX, AY);
3
10136
by: Pete Davis | last post by:
I'm having trouble dealing with bitmaps larger than about 10,000 pixels in either direction. I've tried using DrawImage and DrawImageUnscaled, but both give me out of memory errors. In my case, I'm simply trying to draw a portion of the bitmap. The portion is slightly under the 1600x1200 size of my screen. When trying to do it, I get an Out of Memory exception.
13
3305
by: Metallicraft | last post by:
I have a vb6 application. On the main form is a picture box with one or two images and several pieces of text displayed in it. These are created on the fly using gdi32 routines that are all in a referenced, custom dll. I call a PrintImage routine in the dll and pass it only the the Picturebox.hdc from the main form. The dll's print routine draws to the hdc and it shows up in the picturebox perfectly. I would like to do a similar thing...
2
2064
by: Mike | last post by:
Hello everybody. I am drawing a country map that consists of 149 municipality bitmaps, each around 25 Kb. I draw it onto the in-memory bitmap, then draw it on the picture box. I use C++, but anyways if I were using the C# the question would be the same. And here is the problem: it takes 700 ms to draw it, and anything above 300 ms is noticable by the human eye. So, is there any technique that I could use to actually keep the bitmaps in...
14
2114
by: marko | last post by:
Hi everyone, I'm an artist and I'm looking for a way to draw a line that will zig-zag its way thru an image randomly, crisscrossing itself many times, based on random numbers. To give you an idea of what I'd like to do, here's a link to a gif : http://www.chaosmos.net/chaosmoseng/chaosmos7.htm (it is based on a simple algorithm : http://www.chaosmos.net/chaosmoseng/chaosmos6.htm)
5
12864
by: Macias | last post by:
Hi, Please help me, how I can make a line drawing on PictureBox similar to MS paint. I thinking about this: click and hold button, move mouse and relase button. I'm trying useing this g.DrawLine(..), but I have a lot of line. In C++ is a parameter XORPUT, but in C# I can't find it.
2
8736
by: Nathan Sokalski | last post by:
I am attempting to create icons for controls I have created using VB.NET by using the System.Drawing.ToolboxBitmap attribute. I have managed to do this in C# by specifying the path to the *.ico file, but I have been unable to get any of the overloads to work in VB.NET. I would like to store the *.ico files in a *.resx file so that users do not need anything other than the *.dll, but at the moment I am just trying to get any of the overloads...
0
8076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8573
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8541
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8222
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7002
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5510
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1389
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.