473,385 Members | 1,492 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,385 software developers and data experts.

best image format for line drawings?

PJ6
I am rendering a few graphs with GDI+ and sending images to a web page. What
image format is lightweight and the best for presenting line drawings
sharply and without compression artifacts? GIF? PNG? JPG is too muddy, and
BMP is too big.

Paul
Sep 12 '07 #1
2 3215
I always use png now
no muddy jpg, no 'unreliable' gif
quite small too

On Sep 12, 9:49 pm, "PJ6" <no...@nowhere.netwrote:
I am rendering a few graphs with GDI+ and sending images to a web page. What
image format is lightweight and the best for presenting line drawings
sharply and without compression artifacts? GIF? PNG? JPG is too muddy, and
BMP is too big.

Paul

Sep 12 '07 #2
The advantage of the GIF format is that it is paletted, which means that if
an image has fewer colors, you can use a smaller, selective palette. This
reduces the size of the file without compression. The smaller the number of
colors in the palette, the smaller the image. PNG is not universally
supported, and is not particularly small in size. It's greatest selling
point is its ability to store variable alpha (transparency). GIF has alpha,
but uses a single color for transparency, and the transparency is either off
or on for any pixel, rather than variable. So, assuming that your graphs
have only a few colors in them, GIF might be your best bet.

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"PJ6" <no***@nowhere.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I am rendering a few graphs with GDI+ and sending images to a web page.
What image format is lightweight and the best for presenting line drawings
sharply and without compression artifacts? GIF? PNG? JPG is too muddy, and
BMP is too big.

Paul

Sep 13 '07 #3

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

Similar topics

15
by: lawrence | last post by:
I've been using the following function (yes, it is inelegant, what can I say, I wrote it a long time ago) to upload images. Haven't had a problem with it for at least a year, and I don't recall...
1
by: Novice | last post by:
I'm afraid I will incur the wraith of Mr. Powell on this one - but I did read his #1 FAQ and some others and I still can't figure this out. I created this little c# app. and I have a PictureBox...
8
by: VB Programmer | last post by:
What is the best STANDARD image format, in terms of quality and compression? By "standard" I mean ALL Internet Explorer users.
4
by: Al | last post by:
Hi I need to save lots of images on potentially very large database. Therefore the storage space is very crucial. I need what is most compact way to save an image. Currently I am using something...
1
by: Ben Becker | last post by:
Why when I open an image in VB.NET, display it in an image box, then call the image.save property to save it to a file as a different format (e.g. tiff image with save to jpeg) does it become 10...
8
by: jbrewer | last post by:
I'm trying to read in a FITs image file for my research, and I decided that writing a file decoder for the Python imaging library would be the easiest way to accomplish this for my needs. FITs is...
1
by: Brian | last post by:
Using A2K I have an image control on a report and use code to set the image.picture to the required jpg. 3 of the jpgs resize properly but 2 do not - they display much smaller than the image...
10
by: James Stroud | last post by:
Hello All, I'm looking for a program to do line-drawings in 3d, with output to postscript or svg or pdf, etc. I would like to describe a scene with certain 1-3d elements oriented in 3d space...
5
by: exhuma.twn | last post by:
As many might know, windows allows to copy an image into the clipboard by pressing the "Print Screen" button on the keyboard. Is it possible to paste such an image from the clipboard into a "Text"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.