Am 07.06.2010 um 11:39 schrieb Stephan Assmus: > > On 2010-06-07 at 10:01:38 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> > wrote: >> Stephan Assmus <superstippi@xxxxxx> wrote: >>> On 2010-06-06 at 18:01:52 [+0200], Humdinger <humdingerb@xxxxxxxxxxxxxx> >>> The filtering comes for free when passing B_FILTER_BITMAP_BILINEAR as >>> additional options argument to DrawBitmap(). Is this fast enough? >>> For downscaling, there >>> are >>> better algorithms, bilinear scaling only looks good at a factor above >>> 0.5. >>> But it's a start. >> >> That also means that we can remove the bilinear code from ShowImage, >> right? In ShowImage the filter runs in a background thread. On slow hardware it could take several seconds (IIRC). > Yes, absolutely. I am also in favor of removing duplicated code, as long as ShowImage stays responsive. Bye, Michael