Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: oobaylyPosted on 2009-05-20 at 14:37:46ID: 24436547
Bitmaps would probably be the easiest as the functions available are pretty rich. It's simple to generate a canvas of the desired area & use the System.Drawing.Drawing2D.M atrix to transform points from the native units you are using into the Graphics coordinates.
Bitmaps also mean that printing should be simple for the end user, as every computer will have an application that can render & print a PNG or BMP file.
The cons with using Bitmaps are that as they are a raster format, to get decent quality, they you may have to generate incredibly images. This may increase bandwidth costs & download times as well as loading on the server as the memory cost for a large Bitmap may be great.
SVGs may be harder as you'll either have to create your own code for generating them (I tried this a few years ago) or finding a library that does the hard work for you (quite possible now). As it's a Vector format, you won't lose any of the quality when zooming into a small scale. Also, as it's plain XML, the size of an SVG file shouldn't be as great as a Bitmap.
The cons for SVG would be that the end user needs an application to render the resulting files. Firefox has native support for SVG, but I''m a big fan of Inkscape.
SVG also should give you the option of embedding raster images if required.
It does depend on your end needs, but I'd go with SVG as long as you can find a good library for generating compliant SVG files and persuade end users to go with installing an application supporting. As an engineer, I find vector diagrams far superior for displaying data, however if the detail isn't a massive requirement, raster graphics may be an easier option.