The road to nicely scaled BeOS icons ended up being a little longer than I thought. The hqx scaling algorithm distorted the icons too much because of anti-aliasing making them look cartoony. Also, hqx didn't work with transparent bitmaps so I eventually ended up giving up on the hqx algorithm. Then I found the scale2x library, implemented it, and it worked great. But because of the GPL license I couldn't use it. Finally I found a public domain reimplementation of the scale2x algorithm that I could use. It turns out that SDL's bitmap implementation and BBitmap are nearly identical--SDL has pretty much the same bitmap functions as BBitmap but with different names, so converting from SDL to BBitmap was just a matter of translating function names. I posted my results to the following ticket: http://dev.haiku-os.org/ticket/7130 including before and after screenshots and a patch. I think the screenshots speak for themselves. I know you seemed interested stippi, so I hope you'll check it out. Cheers, John Scipione On Tue, Jan 11, 2011 at 9:01 PM, John Scipione <jscipione@xxxxxxxxx> wrote: > On Tue, Jan 11, 2011 at 9:27 AM, Stephan Aßmus <superstippi@xxxxxx> wrote: > >> Am 11.01.2011 15:07, schrieb Angel Popov: >> >> On 11.1.2011 г. 09:30 ч., Stephan Aßmus wrote: >>> >>>> Do you have some screenshots of original and hqx upscaled bitmaps? >>>> >>> Some hqx samples and info: >>> http://web.archive.org/web/20070624082212/www.hiend3d.com/hq2x.html >>> http://web.archive.org/web/20070703061942/www.hiend3d.com/hq3x.html (has >>> explanation of the algorithm at the bottom) >>> http://web.archive.org/web/20070717064839/www.hiend3d.com/hq4x.html >>> >>> From the page you linked, it sounds like it only supports exact >>>> scaling factors of 2x, 3x and 4x. Which would be a bummer (having to >>>> fall back to other algorithms for other scales). But maybe it could >>>> improve the common case a lot. >>>> >>> If you combine them you can also get 6x, 8x, 9x... >>> And then downsample if needed - the quality will still be better than >>> bilinear >>> >> >> Indeed. Thanks for the cool links! Using that algorithm for displaying old >> BeOS icons would be pretty l33t. >> >> Best regards, >> -Stephan >> >> >> > I managed to create Jam files for the hqx library files and get them > running, next task will be to try and integrate it with my program to do > BeOS icon scaling, hopefully the results will look dramatically better, I > have tested only on regular bmp's I downloaded off the Internet, now I need > to test with BeOS icons. > >