home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!mcsun!Germany.EU.net!nixpbe!uranium!josef
- From: Josef Moellers <mollers.pad@sni.de>
- Subject: Re: reducing bitmaps without loss
- Sender: josef@nixpbe.sni.de (Moellers)
- Message-ID: <josef.711879298@uranium>
- Date: Thu, 23 Jul 1992 08:14:58 GMT
- References: <BrKKrH.6vy@news.cso.uiuc.edu>
- Organization: Siemens Nixdorf Info.Sys. AG, Paderborn, Germany
- Lines: 32
-
- In <BrKKrH.6vy@news.cso.uiuc.edu> amead@s.psych.uiuc.edu (Alan Mead) writes:
-
- >I need to reduce some simple graphs (line, bar, pie, ...). They are in
- >PCX format (which are strictly bitmaps) and I'm not satisfied to just
- >remove every tenth line. When I do this I lose small details (like
- >thin horizontal lines) which I then have to put back by hand (a real
- >pain).
-
- >I've thought about removing one line from every ten at random, but that
- >doesn't seem like it would help. I've also thought about having the
- >program check for lines and avoid removing them (removing white space
- >where possible) but I don't even know how to begin to do that and it
- >seems like it would be a slow process.
-
- >So any advice would be helpful. Thanks.
-
- I once wrote a program to reduce (HPLJ-) softfonts in size.
- It used a technique descibed in comp.graphics FAQ, where it mapped the
- pixels of the smaller character onto the pixels of the larger character
- and then determined how much "black" was covered by this relatively
- larger pixel. If it exceeded some threshold, it'd color the pixel black,
- otherwise it'd leave it white. There _were_ some problems with very thin
- lines in otherwise white areas, though. One had to adjust the threshold
- repetedly until the result was satisfactory.
- This technique would work better if You could use grey-scales, when it
- would do automatic anti-aliasing.
-
- I could give You the source code, if You like.
- --
- | Josef Moellers | c/o Siemens Nixdorf Informationssysteme AG |
- | USA: mollers.pad@sni-usa.com | Abt. STO-XS 113 | Riemekestrasse |
- | !USA: mollers.pad@sni.de | Phone: (+49) 5251 835124 | D-4790 Paderborn |
-