473,396 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Slightly OT - drawing

I am writing a simple program to draw diagrams. I plan to store the
coordinates of each item (initially all straight lines) in a file so
that I can recreate and edit the drawing later. I assume there are
already file structures defined for such things. Can anyone point me at
some please?

Thanks
Jul 13 '08 #1
2 959
You might consider whether you plan on being interoperable with other
programs with similar intent. For example, if you intend on drawing
buildings, some form of CAD file format may exist that is easy to create.
If your intent is just internally for yourself, unless the user is expected
to edit the files outside your program, I would stick with serialized
objects.

"Jack Russell" <ja***@norubbish.tpg.com.auwrote in message
news:Ot**************@TK2MSFTNGP03.phx.gbl...
>I am writing a simple program to draw diagrams. I plan to store the
coordinates of each item (initially all straight lines) in a file so that I
can recreate and edit the drawing later. I assume there are already file
structures defined for such things. Can anyone point me at some please?

Thanks
Jul 13 '08 #2
"Jack Russell" <ja***@norubbish.tpg.com.auschrieb
I am writing a simple program to draw diagrams. I plan to store the
coordinates of each item (initially all straight lines) in a file so
that I can recreate and edit the drawing later. I assume there are
already file structures defined for such things. Can anyone point me
at some please?
XML is often used. Binary format works, too. I prefer latter because of less
unnecessary overhead (however not human readable (why does it have to be?)).
Most probably prefer the former because they don't know why PCs have to be
so fast nowadays. SCNR. (no start for a discusssion please)

Basics you probably already know:
http://msdn.microsoft.com/en-us/library/k3352a4t.aspx
http://msdn.microsoft.com/en-us/library/ws92aysc.aspx

XML:
http://msdn.microsoft.com/en-us/library/2bcctyt8.aspx
http://msdn.microsoft.com/en-us/library/bb384833.aspx
And, you know, the bigger the files the closer a database.
Armin

Jul 13 '08 #3

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

Similar topics

4
by: Rob Meade | last post by:
Lo all, This is rather embarrassing.... I am having some difficulties with an html table... I have... 1 left nav bar which spans 2 rows to the right - these are used for horizontal...
2
by: Champika Nirosh | last post by:
Hi, I want to create drawing board application that can draw Line, rectagle, circle and free hand drawing. Each drawing need to be transparent, moveable (draggable), have bring to front and...
3
by: jrhoads23 | last post by:
If you look at a standard Button in a .NET Windows Forms app, you will notice its default BackColor is "Control" and it has a 3D raised border which is 2 pixels wide. The outer edge on the left and...
1
by: Hadar | last post by:
Hi, I'm getting "object is currently in use elsewhere" when I use System.Drawing.Graphics.MesureString. This is what I do: My controls use a utility class the helps it to mesure strings. To...
4
by: Andy | last post by:
Hi I'm in the position where my employer might pay for courses in VB.net or even the complete MCAD certification. But I need some good arguments for learning VB.net that can relate to my current...
27
by: Smithers | last post by:
Until now I have worked on small teams (1-3 developers) and we've been able to stay out of each others way. Now I'm about to start work on a project that will have 5 developers. I would appreciate...
5
by: Jerry J | last post by:
I want to use the System.Drawing.Image class. According to the help file, this is an abstract base class. Because it is supposedly abstract, I created another class that inherits from it. However,...
1
by: YouPoP | last post by:
I am doing an app (C# 2.0) where you can draw in a panel with your mouse in "real time". I actually have 2 problems; 1- it does not really is "real time", if your mouse move fast or very fast the...
2
by: ThatsIT.net.au | last post by:
I have this code that writes a pie chart in a asp.net page, but I want to use it in a server control. When I try I get a error on the last line "Response.OutputStream" Obviously there is no...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...
0
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,...

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.